{"id":37174,"date":"2025-05-14T13:16:18","date_gmt":"2025-05-14T05:16:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/37174.html"},"modified":"2025-05-14T13:16:18","modified_gmt":"2025-05-14T05:16:18","slug":"%e5%b8%b8%e8%a7%81%e7%9a%84%e5%be%ae%e6%9c%8d%e5%8a%a1%e6%9e%b6%e6%9e%84%e4%bb%8b%e7%bb%8d%ef%bc%8c%e5%8c%85%e6%8b%ac%e5%8c%85%e5%90%ab%e7%bc%93%e5%ad%98%e6%95%b0%e6%8d%ae%e5%ba%93redis%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/37174.html","title":{"rendered":"\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4ecb\u7ecd\uff0c\u5305\u62ec\u5305\u542b\u7f13\u5b58\u6570\u636e\u5e93redis\uff0c\u6d88\u606f\u961f\u5217 RabbitMQ\uff0c\u65e5\u5fd7\u7ba1\u7406ELK\uff0c\u4f7f\u7528docker\u670d\u52a1\u5bb9\u5668\uff0c\u4e14\u91c7\u7528\u70ed\u90e8\u7f72\uff0c\u642d\u5efa\u8fd9\u4e2a\u5fae\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e \u4ee5\u53ca\u90e8\u7f72\u5e94\u7528\u670d\u52a1\uff0c\u65e5\u5fd7\u76d1\u63a7\uff0c\u6d88\u606f\u76d1\u63a7"},"content":{"rendered":"<p>\u6784\u5efa\u4e00\u4e2a\u5b8c\u6574\u7684\u5fae\u670d\u52a1\u67b6\u6784\u6d89\u53ca\u591a\u4e2a\u7ec4\u4ef6\u548c\u6280\u672f\u6808&#xff0c;\u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u6307\u5357&#xff0c;\u6db5\u76d6\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u7ec4\u4ef6&#xff08;\u5982 Redis\u3001RabbitMQ\u3001ELK Stack\u3001Docker\u3001\u70ed\u90e8\u7f72\u7b49&#xff09;&#xff0c;\u4ee5\u53ca\u5982\u4f55\u914d\u7f6e\u548c\u90e8\u7f72\u8fd9\u4e9b\u7ec4\u4ef6\u3002<\/p>\n<h3>1. \u5fae\u670d\u52a1\u67b6\u6784\u6982\u8ff0<\/h3>\n<p>\u5fae\u670d\u52a1\u67b6\u6784\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u89e3\u4e3a\u4e00\u7ec4\u5c0f\u7684\u3001\u72ec\u7acb\u7684\u670d\u52a1&#xff0c;\u6bcf\u4e2a\u670d\u52a1\u8fd0\u884c\u5728\u81ea\u5df1\u7684\u8fdb\u7a0b\u4e2d&#xff0c;\u5e76\u901a\u8fc7\u8f7b\u91cf\u7ea7\u673a\u5236&#xff08;\u901a\u5e38\u662f HTTP API&#xff09;\u8fdb\u884c\u901a\u4fe1\u3002\u8fd9\u4e9b\u670d\u52a1\u53ef\u4ee5\u72ec\u7acb\u90e8\u7f72\u3001\u6269\u5c55\u548c\u7ef4\u62a4\u3002<\/p>\n<h4>\u5e38\u89c1\u5fae\u670d\u52a1\u67b6\u6784\u7ec4\u4ef6<\/h4>\n<ul>\n<li>\u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0&#xff1a;Eureka\u3001Consul\u3001Zookeeper<\/li>\n<li>\u914d\u7f6e\u4e2d\u5fc3&#xff1a;Spring Cloud Config\u3001Apollo<\/li>\n<li>API \u7f51\u5173&#xff1a;Spring Cloud Gateway\u3001Kong<\/li>\n<li>\u670d\u52a1\u8c03\u7528&#xff1a;Feign\u3001RestTemplate<\/li>\n<li>\u7194\u65ad\u5668&#xff1a;Hystrix\u3001Resilience4j<\/li>\n<li>\u7f13\u5b58\u6570\u636e\u5e93&#xff1a;Redis<\/li>\n<li>\u6d88\u606f\u961f\u5217&#xff1a;RabbitMQ\u3001Kafka<\/li>\n<li>\u65e5\u5fd7\u7ba1\u7406&#xff1a;ELK Stack&#xff08;Elasticsearch, Logstash, Kibana&#xff09;<\/li>\n<li>\u5bb9\u5668\u5316&#xff1a;Docker<\/li>\n<li>\u7f16\u6392\u5de5\u5177&#xff1a;Kubernetes<\/li>\n<li>\u70ed\u90e8\u7f72&#xff1a;Spring Boot DevTools\u3001JRebel<\/li>\n<\/ul>\n<h3>2. \u4f7f\u7528\u7684\u6280\u672f\u6808<\/h3>\n<ul>\n<li>\u7f16\u7a0b\u8bed\u8a00&#xff1a;Java (Spring Boot)<\/li>\n<li>\u7f13\u5b58\u6570\u636e\u5e93&#xff1a;Redis<\/li>\n<li>\u6d88\u606f\u961f\u5217&#xff1a;RabbitMQ<\/li>\n<li>\u65e5\u5fd7\u7ba1\u7406&#xff1a;ELK Stack (Elasticsearch, Logstash, Kibana)<\/li>\n<li>\u5bb9\u5668\u5316&#xff1a;Docker<\/li>\n<li>\u7f16\u6392\u5de5\u5177&#xff1a;Docker Compose (\u7b80\u5316\u90e8\u7f72)<\/li>\n<li>\u70ed\u90e8\u7f72&#xff1a;Spring Boot DevTools<\/li>\n<\/ul>\n<h3>3. \u5fae\u670d\u52a1\u67b6\u6784\u793a\u4f8b<\/h3>\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u7b80\u5355\u7684\u5fae\u670d\u52a1\u67b6\u6784&#xff0c;\u5305\u542b\u4ee5\u4e0b\u670d\u52a1&#xff1a;<\/p>\n<ul>\n<li>User Service&#xff1a;\u7528\u6237\u7ba1\u7406\u670d\u52a1<\/li>\n<li>Order Service&#xff1a;\u8ba2\u5355\u7ba1\u7406\u670d\u52a1<\/li>\n<li>Product Service&#xff1a;\u4ea7\u54c1\u7ba1\u7406\u670d\u52a1<\/li>\n<li>API Gateway&#xff1a;\u7edf\u4e00\u5165\u53e3<\/li>\n<\/ul>\n<h4>3.1 \u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0<\/h4>\n<p>\u4f7f\u7528\u00a0Eureka\u00a0\u4f5c\u4e3a\u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0\u4e2d\u5fc3\u3002<\/p>\n<h5>3.1.1 \u521b\u5efa Eureka Server<\/h5>\n<p>pom.xml<\/p>\n<p>xml<\/p>\n<p>&lt;dependencies&gt;<br \/>\n    &lt;dependency&gt;<br \/>\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;<br \/>\n        &lt;artifactId&gt;spring-cloud-starter-netflix-eureka-server&lt;\/artifactId&gt;<br \/>\n    &lt;\/dependency&gt;<br \/>\n&lt;\/dependencies&gt; <\/p>\n<p>application.yml<\/p>\n<p>yaml<\/p>\n<p>server:<br \/>\n  port: 8761<\/p>\n<p>eureka:<br \/>\n  client:<br \/>\n    register-with-eureka: false<br \/>\n    fetch-registry: false<br \/>\n    service-url:<br \/>\n      defaultZone: http:\/\/localhost:8761\/eureka\/ <\/p>\n<p>EurekaServerApplication.java<\/p>\n<p>java<\/p>\n<p>package com.example.eurekaserver;<\/p>\n<p>import org.springframework.boot.SpringApplication;<br \/>\nimport org.springframework.boot.autoconfigure.SpringBootApplication;<br \/>\nimport org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;<\/p>\n<p>&#064;SpringBootApplication<br \/>\n&#064;EnableEurekaServer<br \/>\npublic class EurekaServerApplication {<br \/>\n    public static void main(String[] args) {<br \/>\n        SpringApplication.run(EurekaServerApplication.class, args);<br \/>\n    }<br \/>\n} <\/p>\n<h4>3.2 API Gateway<\/h4>\n<p>\u4f7f\u7528\u00a0Spring Cloud Gateway\u00a0\u4f5c\u4e3a API \u7f51\u5173\u3002<\/p>\n<h5>3.2.1 \u521b\u5efa API Gateway \u670d\u52a1<\/h5>\n<p>pom.xml<\/p>\n<p>xml<\/p>\n<p>&lt;dependencies&gt;<br \/>\n    &lt;dependency&gt;<br \/>\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;<br \/>\n        &lt;artifactId&gt;spring-cloud-starter-gateway&lt;\/artifactId&gt;<br \/>\n    &lt;\/dependency&gt;<br \/>\n    &lt;dependency&gt;<br \/>\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;<br \/>\n        &lt;artifactId&gt;spring-cloud-starter-netflix-eureka-client&lt;\/artifactId&gt;<br \/>\n    &lt;\/dependency&gt;<br \/>\n&lt;\/dependencies&gt; <\/p>\n<p>application.yml<\/p>\n<p>yaml<\/p>\n<p>server:<br \/>\n  port: 8080<\/p>\n<p>spring:<br \/>\n  application:<br \/>\n    name: api-gateway<br \/>\n  cloud:<br \/>\n    gateway:<br \/>\n      routes:<br \/>\n        &#8211; id: user-service<br \/>\n          uri: lb:\/\/user-service<br \/>\n          predicates:<br \/>\n            &#8211; Path&#061;\/users\/**<br \/>\n        &#8211; id: order-service<br \/>\n          uri: lb:\/\/order-service<br \/>\n          predicates:<br \/>\n            &#8211; Path&#061;\/orders\/**<br \/>\n        &#8211; id: product-service<br \/>\n          uri: lb:\/\/product-service<br \/>\n          predicates:<br \/>\n            &#8211; Path&#061;\/products\/**<br \/>\neureka:<br \/>\n  client:<br \/>\n    service-url:<br \/>\n      defaultZone: http:\/\/localhost:8761\/eureka\/ <\/p>\n<p>ApiGatewayApplication.java<\/p>\n<p>java<\/p>\n<p>package com.example.apigateway;<\/p>\n<p>import org.springframework.boot.SpringApplication;<br \/>\nimport org.springframework.boot.autoconfigure.SpringBootApplication;<br \/>\nimport org.springframework.cloud.netflix.eureka.EnableEurekaClient;<\/p>\n<p>&#064;SpringBootApplication<br \/>\n&#064;EnableEurekaClient<br \/>\npublic class ApiGatewayApplication {<br \/>\n    public static void main(String[] args) {<br \/>\n        SpringApplication.run(ApiGatewayApplication.class, args);<br \/>\n    }<br \/>\n} <\/p>\n<h4>3.3 User Service<\/h4>\n<h5>3.3.1 \u521b\u5efa User Service<\/h5>\n<p>pom.xml<\/p>\n<p>xml<\/p>\n<p>&lt;dependencies&gt;<br \/>\n    &lt;dependency&gt;<br \/>\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n        &lt;artifactId&gt;spring-boot-starter-web&lt;\/artifactId&gt;<br \/>\n    &lt;\/dependency&gt;<br \/>\n    &lt;dependency&gt;<br \/>\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;<br \/>\n        &lt;artifactId&gt;spring-cloud-starter-netflix-eureka-client&lt;\/artifactId&gt;<br \/>\n    &lt;\/dependency&gt;<br \/>\n    &lt;dependency&gt;<br \/>\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n        &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;\/artifactId&gt;<br \/>\n    &lt;\/dependency&gt;<br \/>\n    &lt;dependency&gt;<br \/>\n        &lt;groupId&gt;com.h2database&lt;\/groupId&gt;<br \/>\n        &lt;artifactId&gt;h2&lt;\/artifactId&gt;<br \/>\n        &lt;scope&gt;runtime&lt;\/scope&gt;<br \/>\n    &lt;\/dependency&gt;<br \/>\n    &lt;dependency&gt;<br \/>\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n        &lt;artifactId&gt;spring-boot-devtools&lt;\/artifactId&gt;<br \/>\n        &lt;scope&gt;runtime&lt;\/scope&gt;<br \/>\n    &lt;\/dependency&gt;<br \/>\n&lt;\/dependencies&gt; <\/p>\n<p>application.yml<\/p>\n<p>yaml<\/p>\n<p>server:<br \/>\n  port: 0<\/p>\n<p>spring:<br \/>\n  application:<br \/>\n    name: user-service<br \/>\n  datasource:<br \/>\n    url: jdbc:h2:mem:testdb<br \/>\n    driver-class-name: org.h2.Driver<br \/>\n    username: sa<br \/>\n    password:<br \/>\n  jpa:<br \/>\n    hibernate:<br \/>\n      ddl-auto: update<br \/>\n    show-sql: true<\/p>\n<p>eureka:<br \/>\n  client:<br \/>\n    service-url:<br \/>\n      defaultZone: http:\/\/localhost:8761\/eureka\/ <\/p>\n<p>User.java<\/p>\n<p>java<\/p>\n<p>package com.example.userservice.model;<\/p>\n<p>import javax.persistence.Entity;<br \/>\nimport javax.persistence.GeneratedValue;<br \/>\nimport javax.persistence.GenerationType;<br \/>\nimport javax.persistence.Id;<\/p>\n<p>&#064;Entity<br \/>\npublic class User {<br \/>\n    &#064;Id<br \/>\n    &#064;GeneratedValue(strategy &#061; GenerationType.IDENTITY)<br \/>\n    private Long id;<br \/>\n    private String name;<br \/>\n    private String email;<\/p>\n<p>    \/\/ Getters and Setters<br \/>\n} <\/p>\n<p>UserRepository.java<\/p>\n<p>java<\/p>\n<p>package com.example.userservice.repository;<\/p>\n<p>import com.example.userservice.model.User;<br \/>\nimport org.springframework.data.jpa.repository.JpaRepository;<\/p>\n<p>public interface UserRepository extends JpaRepository&lt;User, Long&gt; {<br \/>\n} <\/p>\n<p>UserController.java<\/p>\n<p>java<\/p>\n<p>package com.example.userservice.controller;<\/p>\n<p>import com.example.userservice.model.User;<br \/>\nimport com.example.userservice.repository.UserRepository;<br \/>\nimport org.springframework.beans.factory.annotation.Autowired;<br \/>\nimport org.springframework.web.bind.annotation.*;<\/p>\n<p>import java.util.List;<\/p>\n<p>&#064;RestController<br \/>\n&#064;RequestMapping(&#034;\/users&#034;)<br \/>\npublic class UserController {<\/p>\n<p>    &#064;Autowired<br \/>\n    private UserRepository userRepository;<\/p>\n<p>    &#064;GetMapping<br \/>\n    public List&lt;User&gt; getAllUsers() {<br \/>\n        return userRepository.findAll();<br \/>\n    }<\/p>\n<p>    &#064;PostMapping<br \/>\n    public User createUser(&#064;RequestBody User user) {<br \/>\n        return userRepository.save(user);<br \/>\n    }<br \/>\n} <\/p>\n<p>UserServiceApplication.java<\/p>\n<p>java<\/p>\n<p>package com.example.userservice;<\/p>\n<p>import org.springframework.boot.SpringApplication;<br \/>\nimport org.springframework.boot.autoconfigure.SpringBootApplication;<br \/>\nimport org.springframework.cloud.netflix.eureka.EnableEurekaClient;<\/p>\n<p>&#064;SpringBootApplication<br \/>\n&#064;EnableEurekaClient<br \/>\npublic class UserServiceApplication {<br \/>\n    public static void main(String[] args) {<br \/>\n        SpringApplication.run(UserServiceApplication.class, args);<br \/>\n    }<br \/>\n} <\/p>\n<h4>3.4 Order Service \u548c Product Service<\/h4>\n<p>Order Service\u00a0\u548c\u00a0Product Service\u00a0\u7684\u7ed3\u6784\u4e0e\u00a0User Service\u00a0\u7c7b\u4f3c&#xff0c;\u53ea\u9700\u66f4\u6539\u00a0application.yml\u00a0\u4e2d\u7684\u670d\u52a1\u540d\u79f0\u548c\u7aef\u53e3\u3002<\/p>\n<p>Order Service application.yml<\/p>\n<p>yaml<\/p>\n<p>server:<br \/>\n  port: 0<\/p>\n<p>spring:<br \/>\n  application:<br \/>\n    name: order-service<br \/>\n  datasource:<br \/>\n    url: jdbc:h2:mem:testdb<br \/>\n    driver-class-name: org.h2.Driver<br \/>\n    username: sa<br \/>\n    password:<br \/>\n  jpa:<br \/>\n    hibernate:<br \/>\n      ddl-auto: update<br \/>\n    show-sql: true<\/p>\n<p>eureka:<br \/>\n  client:<br \/>\n    service-url:<br \/>\n      defaultZone: http:\/\/localhost:8761\/eureka\/ <\/p>\n<p>Product Service application.yml<\/p>\n<p>yaml<\/p>\n<p>server:<br \/>\n  port: 0<\/p>\n<p>spring:<br \/>\n  application:<br \/>\n    name: product-service<br \/>\n  datasource:<br \/>\n    url: jdbc:h2:mem:testdb<br \/>\n    driver-class-name: org.h2.Driver<br \/>\n    username: sa<br \/>\n    password:<br \/>\n  jpa:<br \/>\n    hibernate:<br \/>\n      ddl-auto: update<br \/>\n    show-sql: true<\/p>\n<p>eureka:<br \/>\n  client:<br \/>\n    service-url:<br \/>\n      defaultZone: http:\/\/localhost:8761\/eureka\/ <\/p>\n<h3>4. \u4f7f\u7528 Redis \u4f5c\u4e3a\u7f13\u5b58\u6570\u636e\u5e93<\/h3>\n<h4>4.1 \u6dfb\u52a0 Redis \u4f9d\u8d56<\/h4>\n<p>\u5728\u6bcf\u4e2a\u670d\u52a1\u7684\u00a0pom.xml\u00a0\u4e2d\u6dfb\u52a0 Redis \u4f9d\u8d56&#xff1a;<\/p>\n<p>xml<\/p>\n<p>&lt;dependency&gt;<br \/>\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;spring-boot-starter-data-redis&lt;\/artifactId&gt;<br \/>\n&lt;\/dependency&gt; <\/p>\n<h4>4.2 \u914d\u7f6e Redis<\/h4>\n<p>\u5728\u00a0application.yml\u00a0\u4e2d\u914d\u7f6e Redis \u8fde\u63a5&#xff1a;<\/p>\n<p>yaml<\/p>\n<p>spring:<br \/>\n  redis:<br \/>\n    host: localhost<br \/>\n    port: 6379 <\/p>\n<h4>4.3 \u4f7f\u7528 Redis \u8fdb\u884c\u7f13\u5b58<\/h4>\n<p>\u5728\u00a0User Service\u00a0\u4e2d\u4f7f\u7528 Redis \u8fdb\u884c\u7f13\u5b58\u793a\u4f8b&#xff1a;<\/p>\n<p>UserCacheService.java<\/p>\n<p>java<\/p>\n<p>package com.example.userservice.service;<\/p>\n<p>import com.example.userservice.model.User;<br \/>\nimport com.example.userservice.repository.UserRepository;<br \/>\nimport org.springframework.beans.factory.annotation.Autowired;<br \/>\nimport org.springframework.cache.annotation.Cacheable;<br \/>\nimport org.springframework.stereotype.Service;<\/p>\n<p>&#064;Service<br \/>\npublic class UserCacheService {<\/p>\n<p>    &#064;Autowired<br \/>\n    private UserRepository userRepository;<\/p>\n<p>    &#064;Cacheable(value &#061; &#034;users&#034;, key &#061; &#034;#id&#034;)<br \/>\n    public User getUserById(Long id) {<br \/>\n        return userRepository.findById(id).orElse(null);<br \/>\n    }<br \/>\n} <\/p>\n<p>UserServiceApplication.java\u00a0\u542f\u7528\u7f13\u5b58&#xff1a;<\/p>\n<p>java<\/p>\n<p>package com.example.userservice;<\/p>\n<p>import org.springframework.boot.SpringApplication;<br \/>\nimport org.springframework.boot.autoconfigure.SpringBootApplication;<br \/>\nimport org.springframework.cache.annotation.EnableCaching;<br \/>\nimport org.springframework.cloud.netflix.eureka.EnableEurekaClient;<\/p>\n<p>&#064;SpringBootApplication<br \/>\n&#064;EnableEurekaClient<br \/>\n&#064;EnableCaching<br \/>\npublic class UserServiceApplication {<br \/>\n    public static void main(String[] args) {<br \/>\n        SpringApplication.run(UserServiceApplication.class, args);<br \/>\n    }<br \/>\n} <\/p>\n<h3>5. \u4f7f\u7528 RabbitMQ \u4f5c\u4e3a\u6d88\u606f\u961f\u5217<\/h3>\n<h4>5.1 \u6dfb\u52a0 RabbitMQ \u4f9d\u8d56<\/h4>\n<p>\u5728\u6bcf\u4e2a\u670d\u52a1\u7684\u00a0pom.xml\u00a0\u4e2d\u6dfb\u52a0 RabbitMQ \u4f9d\u8d56&#xff1a;<\/p>\n<p>xml<\/p>\n<p>&lt;dependency&gt;<br \/>\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;spring-boot-starter-amqp&lt;\/artifactId&gt;<br \/>\n&lt;\/dependency&gt; <\/p>\n<h4>5.2 \u914d\u7f6e RabbitMQ<\/h4>\n<p>\u5728\u00a0application.yml\u00a0\u4e2d\u914d\u7f6e RabbitMQ \u8fde\u63a5&#xff1a;<\/p>\n<p>yaml<\/p>\n<p>spring:<br \/>\n  rabbitmq:<br \/>\n    host: localhost<br \/>\n    port: 5672<br \/>\n    username: guest<br \/>\n    password: guest <\/p>\n<h4>5.3 \u4f7f\u7528 RabbitMQ \u53d1\u9001\u548c\u63a5\u6536\u6d88\u606f<\/h4>\n<p>\u5728\u00a0Order Service\u00a0\u4e2d\u53d1\u9001\u6d88\u606f\u793a\u4f8b&#xff1a;<\/p>\n<p>OrderService.java<\/p>\n<p>java<\/p>\n<p>package com.example.orderservice.service;<\/p>\n<p>import org.springframework.amqp.core.AmqpTemplate;<br \/>\nimport org.springframework.beans.factory.annotation.Autowired;<br \/>\nimport org.springframework.stereotype.Service;<\/p>\n<p>&#064;Service<br \/>\npublic class OrderService {<\/p>\n<p>    &#064;Autowired<br \/>\n    private AmqpTemplate amqpTemplate;<\/p>\n<p>    public void sendOrder(String order) {<br \/>\n        amqpTemplate.convertAndSend(&#034;orderQueue&#034;, order);<br \/>\n    }<br \/>\n} <\/p>\n<p>\u5728\u00a0User Service\u00a0\u4e2d\u63a5\u6536\u6d88\u606f\u793a\u4f8b&#xff1a;<\/p>\n<p>UserReceiver.java<\/p>\n<p>java<\/p>\n<p>package com.example.userservice.receiver;<\/p>\n<p>import org.springframework.amqp.rabbit.annotation.RabbitListener;<br \/>\nimport org.springframework.stereotype.Component;<\/p>\n<p>&#064;Component<br \/>\npublic class UserReceiver {<\/p>\n<p>    &#064;RabbitListener(queues &#061; &#034;orderQueue&#034;)<br \/>\n    public void receiveMessage(String order) {<br \/>\n        System.out.println(&#034;Received order: &#034; &#043; order);<br \/>\n    }<br \/>\n} <\/p>\n<h3>6. \u4f7f\u7528 ELK Stack \u8fdb\u884c\u65e5\u5fd7\u7ba1\u7406<\/h3>\n<h4>6.1 \u5b89\u88c5 ELK Stack<\/h4>\n<p>\u4f7f\u7528 Docker Compose \u5b89\u88c5 ELK Stack&#xff1a;<\/p>\n<p>docker-compose.yml<\/p>\n<p>yaml<\/p>\n<p>version: &#039;3&#039;<br \/>\nservices:<br \/>\n  elasticsearch:<br \/>\n    image: docker.elastic.co\/elasticsearch\/elasticsearch:7.10.2<br \/>\n    container_name: elasticsearch<br \/>\n    environment:<br \/>\n      &#8211; discovery.type&#061;single-node<br \/>\n    ports:<br \/>\n      &#8211; &#034;9200:9200&#034;<br \/>\n      &#8211; &#034;9300:9300&#034;<\/p>\n<p>  logstash:<br \/>\n    image: docker.elastic.co\/logstash\/logstash:7.10.2<br \/>\n    container_name: logstash<br \/>\n    volumes:<br \/>\n      &#8211; .\/logstash\/pipeline:\/usr\/share\/logstash\/pipeline\/<br \/>\n    ports:<br \/>\n      &#8211; &#034;5044:5044&#034;<br \/>\n    depends_on:<br \/>\n      &#8211; elasticsearch<\/p>\n<p>  kibana:<br \/>\n    image: docker.elastic.co\/kibana\/kibana:7.10.2<br \/>\n    container_name: kibana<br \/>\n    ports:<br \/>\n      &#8211; &#034;5601:5601&#034;<br \/>\n    depends_on:<br \/>\n      &#8211; elasticsearch <\/p>\n<p>logstash\/pipeline\/logstash.conf<\/p>\n<p>conf<\/p>\n<p>input {<br \/>\n  beats {<br \/>\n    port &#061;&gt; 5044<br \/>\n  }<br \/>\n}<\/p>\n<p>output {<br \/>\n  elasticsearch {<br \/>\n    hosts &#061;&gt; [&#034;http:\/\/elasticsearch:9200&#034;]<br \/>\n    index &#061;&gt; &#034;%{[&#064;metadata][beat]}-%{[&#064;metadata][version]}-%{&#043;YYYY.MM.dd}&#034;<br \/>\n  }<br \/>\n} <\/p>\n<p>\u542f\u52a8 ELK Stack&#xff1a;<\/p>\n<p>bash<\/p>\n<p>docker-compose up -d <\/p>\n<h4>6.2 \u914d\u7f6e Spring Boot \u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528 Filebeat<\/h4>\n<p>\u5728\u6bcf\u4e2a Spring Boot \u5e94\u7528\u7a0b\u5e8f\u4e2d\u6dfb\u52a0 Filebeat \u914d\u7f6e&#xff1a;<\/p>\n<p>filebeat.yml<\/p>\n<p>yaml<\/p>\n<p>filebeat.inputs:<br \/>\n&#8211; type: log<br \/>\n  enabled: true<br \/>\n  paths:<br \/>\n    &#8211; \/var\/log\/*.log<\/p>\n<p>output.logstash:<br \/>\n  hosts: [&#034;logstash:5044&#034;] <\/p>\n<p>\u5728 Docker Compose \u6587\u4ef6\u4e2d\u6dfb\u52a0 Filebeat \u670d\u52a1&#xff1a;<\/p>\n<p>docker-compose.yml<\/p>\n<p>yaml<\/p>\n<p>version: &#039;3&#039;<br \/>\nservices:<br \/>\n  # \u5176\u4ed6\u670d\u52a1&#8230;<\/p>\n<p>  filebeat:<br \/>\n    image: docker.elastic.co\/beats\/filebeat:7.10.2<br \/>\n    container_name: filebeat<br \/>\n    volumes:<br \/>\n      &#8211; .\/filebeat\/filebeat.yml:\/usr\/share\/filebeat\/filebeat.yml<br \/>\n      &#8211; \/var\/log:\/var\/log<br \/>\n    depends_on:<br \/>\n      &#8211; logstash <\/p>\n<h3>7. \u4f7f\u7528 Docker \u5bb9\u5668\u5316\u670d\u52a1<\/h3>\n<h4>7.1 \u521b\u5efa Dockerfile<\/h4>\n<p>\u4e3a\u6bcf\u4e2a\u670d\u52a1\u521b\u5efa Dockerfile\u3002\u4ee5\u00a0User Service\u00a0\u4e3a\u4f8b&#xff1a;<\/p>\n<p>Dockerfile<\/p>\n<p>Dockerfile<\/p>\n<p>FROM openjdk:17-jdk-slim<br \/>\nVOLUME \/tmp<br \/>\nCOPY target\/user-service.jar user-service.jar<br \/>\nENTRYPOINT [&#034;java&#034;, &#034;-jar&#034;, &#034;\/user-service.jar&#034;] <\/p>\n<h4>7.2 \u6784\u5efa Docker \u955c\u50cf<\/h4>\n<p>\u5728\u6bcf\u4e2a\u670d\u52a1\u76ee\u5f55\u4e0b\u6784\u5efa Docker \u955c\u50cf&#xff1a;<\/p>\n<p>bash<\/p>\n<p>mvn clean package<br \/>\ndocker build -t user-service . <\/p>\n<h4>7.3 \u4f7f\u7528 Docker Compose \u90e8\u7f72\u670d\u52a1<\/h4>\n<p>\u521b\u5efa\u00a0docker-compose.yml\u00a0\u6587\u4ef6\u6765\u5b9a\u4e49\u6240\u6709\u670d\u52a1&#xff1a;<\/p>\n<p>docker-compose.yml<\/p>\n<p>yaml<\/p>\n<p>version: &#039;3&#039;<br \/>\nservices:<br \/>\n  eureka-server:<br \/>\n    image: eureka-server:latest<br \/>\n    ports:<br \/>\n      &#8211; &#034;8761:8761&#034;<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<\/p>\n<p>  api-gateway:<br \/>\n    image: api-gateway:latest<br \/>\n    ports:<br \/>\n      &#8211; &#034;8080:8080&#034;<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<br \/>\n    depends_on:<br \/>\n      &#8211; eureka-server<\/p>\n<p>  user-service:<br \/>\n    image: user-service:latest<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<br \/>\n    depends_on:<br \/>\n      &#8211; eureka-server<br \/>\n      &#8211; redis<br \/>\n      &#8211; rabbitmq<\/p>\n<p>  order-service:<br \/>\n    image: order-service:latest<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<br \/>\n    depends_on:<br \/>\n      &#8211; eureka-server<br \/>\n      &#8211; redis<br \/>\n      &#8211; rabbitmq<\/p>\n<p>  product-service:<br \/>\n    image: product-service:latest<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<br \/>\n    depends_on:<br \/>\n      &#8211; eureka-server<br \/>\n      &#8211; redis<br \/>\n      &#8211; rabbitmq<\/p>\n<p>  redis:<br \/>\n    image: redis:6.2<br \/>\n    ports:<br \/>\n      &#8211; &#034;6379:6379&#034;<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<\/p>\n<p>  rabbitmq:<br \/>\n    image: rabbitmq:3-management<br \/>\n    ports:<br \/>\n      &#8211; &#034;5672:5672&#034;<br \/>\n      &#8211; &#034;15672:15672&#034;<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<\/p>\n<p>  elasticsearch:<br \/>\n    image: docker.elastic.co\/elasticsearch\/elasticsearch:7.10.2<br \/>\n    container_name: elasticsearch<br \/>\n    environment:<br \/>\n      &#8211; discovery.type&#061;single-node<br \/>\n    ports:<br \/>\n      &#8211; &#034;9200:9200&#034;<br \/>\n      &#8211; &#034;9300:9300&#034;<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<\/p>\n<p>  logstash:<br \/>\n    image: docker.elastic.co\/logstash\/logstash:7.10.2<br \/>\n    container_name: logstash<br \/>\n    volumes:<br \/>\n      &#8211; .\/logstash\/pipeline:\/usr\/share\/logstash\/pipeline\/<br \/>\n    ports:<br \/>\n      &#8211; &#034;5044:5044&#034;<br \/>\n    depends_on:<br \/>\n      &#8211; elasticsearch<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<\/p>\n<p>  kibana:<br \/>\n    image: docker.elastic.co\/kibana\/kibana:7.10.2<br \/>\n    container_name: kibana<br \/>\n    ports:<br \/>\n      &#8211; &#034;5601:5601&#034;<br \/>\n    depends_on:<br \/>\n      &#8211; elasticsearch<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<\/p>\n<p>  filebeat:<br \/>\n    image: docker.elastic.co\/beats\/filebeat:7.10.2<br \/>\n    container_name: filebeat<br \/>\n    volumes:<br \/>\n      &#8211; .\/filebeat\/filebeat.yml:\/usr\/share\/filebeat\/filebeat.yml<br \/>\n      &#8211; \/var\/log:\/var\/log<br \/>\n    depends_on:<br \/>\n      &#8211; logstash<br \/>\n    networks:<br \/>\n      &#8211; microservices-network<\/p>\n<p>networks:<br \/>\n  microservices-network:<br \/>\n    driver: bridge <\/p>\n<h4>7.4 \u6784\u5efa\u5e76\u542f\u52a8\u6240\u6709\u670d\u52a1<\/h4>\n<p>\u6784\u5efa\u6240\u6709\u670d\u52a1\u7684 Docker \u955c\u50cf&#xff1a;<\/p>\n<p>bash<\/p>\n<p>docker-compose build <\/p>\n<p>\u542f\u52a8\u6240\u6709\u670d\u52a1&#xff1a;<\/p>\n<p>bash<\/p>\n<p>docker-compose up -d <\/p>\n<h3>8. \u914d\u7f6e\u8d1f\u8f7d\u5747\u8861<\/h3>\n<h4>8.1 \u4f7f\u7528 Nginx \u4f5c\u4e3a\u8d1f\u8f7d\u5747\u8861\u5668<\/h4>\n<p>\u521b\u5efa\u4e00\u4e2a Nginx \u914d\u7f6e\u6587\u4ef6\u6765\u8d1f\u8f7d\u5747\u8861 API Gateway \u5b9e\u4f8b\u3002<\/p>\n<p>nginx.conf<\/p>\n<p>nginx<\/p>\n<p>events {<br \/>\n    worker_connections 1024;<br \/>\n}<\/p>\n<p>http {<br \/>\n    upstream api-gateway {<br \/>\n        server api-gateway-1:8080;<br \/>\n        server api-gateway-2:8080;<br \/>\n        # \u53ef\u4ee5\u6839\u636e\u9700\u8981\u6dfb\u52a0\u66f4\u591a API Gateway \u5b9e\u4f8b<br \/>\n    }<\/p>\n<p>    server {<br \/>\n        listen 80;<\/p>\n<p>        location \/ {<br \/>\n            proxy_pass http:\/\/api-gateway;<br \/>\n            proxy_set_header Host $host;<br \/>\n            proxy_set_header X-Real-IP $remote_addr;<br \/>\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n            proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n        }<br \/>\n    }<br \/>\n} <\/p>\n<h5>8.2 \u4f7f\u7528 Docker Compose \u542f\u52a8 Nginx<\/h5>\n<p>\u5728\u00a0docker-compose.yml\u00a0\u4e2d\u6dfb\u52a0 Nginx \u670d\u52a1&#xff1a;<\/p>\n<p>yaml<\/p>\n<p>version: &#039;3&#039;<br \/>\nservices:<br \/>\n  # \u5176\u4ed6\u670d\u52a1&#8230;<\/p>\n<p>  nginx:<br \/>\n    image: nginx:latest<br \/>\n    container_name: nginx<br \/>\n    ports:<br \/>\n      &#8211; &#034;80:80&#034;<br \/>\n    volumes:<br \/>\n      &#8211; .\/nginx\/nginx.conf:\/etc\/nginx\/nginx.conf<br \/>\n    depends_on:<br \/>\n      &#8211; api-gateway<br \/>\n    networks:<br \/>\n      &#8211; microservices-network <\/p>\n<p>\u542f\u52a8\u6240\u6709\u670d\u52a1\u540e&#xff0c;Nginx \u5c06\u4f1a\u81ea\u52a8\u5c06\u8bf7\u6c42\u5206\u53d1\u5230\u591a\u4e2a API Gateway \u5b9e\u4f8b&#xff0c;\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\u3002<\/p>\n<h3>9. \u65e5\u5fd7\u76d1\u63a7\u4e0e\u6d88\u606f\u76d1\u63a7<\/h3>\n<h4>9.1 \u65e5\u5fd7\u76d1\u63a7<\/h4>\n<p>\u4f7f\u7528\u00a0ELK Stack\u00a0\u8fdb\u884c\u65e5\u5fd7\u7ba1\u7406\u3002\u901a\u8fc7 Kibana \u7684\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u53ef\u4ee5\u5b9e\u65f6\u67e5\u770b\u548c\u5206\u6790\u65e5\u5fd7\u6570\u636e\u3002<\/p>\n<h5>9.1.1 \u67e5\u770b\u65e5\u5fd7<\/h5>\n<li>\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee\u00a0http:\/\/localhost:5601\u3002<\/li>\n<li>\u767b\u5f55 Kibana \u540e&#xff0c;\u9009\u62e9\u201cDiscover\u201d\u9009\u9879\u5361\u3002<\/li>\n<li>\u9009\u62e9\u76f8\u5e94\u7684\u7d22\u5f15\u6a21\u5f0f&#xff08;\u5982\u00a0filebeat-*&#xff09;&#xff0c;\u5373\u53ef\u67e5\u770b\u6240\u6709\u65e5\u5fd7\u3002<\/li>\n<h5>9.1.2 \u521b\u5efa\u4eea\u8868\u76d8<\/h5>\n<li>\u5728 Kibana \u4e2d\u9009\u62e9\u201cDashboard\u201d\u9009\u9879\u5361\u3002<\/li>\n<li>\u70b9\u51fb\u201cCreate new dashboard\u201d&#xff0c;\u7136\u540e\u6dfb\u52a0\u5404\u79cd\u56fe\u8868\u548c\u53ef\u89c6\u5316\u7ec4\u4ef6\u3002<\/li>\n<li>\u901a\u8fc7\u8fd9\u4e9b\u56fe\u8868\u53ef\u4ee5\u76d1\u63a7\u65e5\u5fd7\u4e2d\u7684\u9519\u8bef\u3001\u8b66\u544a\u7b49\u4fe1\u606f\u3002<\/li>\n<h4>9.2 \u6d88\u606f\u76d1\u63a7<\/h4>\n<p>\u4f7f\u7528\u00a0RabbitMQ Management Plugin\u00a0\u76d1\u63a7 RabbitMQ \u4e2d\u7684\u6d88\u606f\u961f\u5217\u3002<\/p>\n<h5>9.2.1 \u542f\u7528 RabbitMQ \u7ba1\u7406\u63d2\u4ef6<\/h5>\n<p>\u5728 Docker Compose \u6587\u4ef6\u4e2d\u5df2\u7ecf\u542f\u7528\u4e86 RabbitMQ \u7ba1\u7406\u63d2\u4ef6&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u624b\u52a8\u542f\u7528&#xff1a;<\/p>\n<p>bash<\/p>\n<p>docker exec -it rabbitmq rabbitmq-plugins enable rabbitmq_management <\/p>\n<h5>9.2.2 \u8bbf\u95ee RabbitMQ \u7ba1\u7406\u754c\u9762<\/h5>\n<li>\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee\u00a0http:\/\/localhost:15672\u3002<\/li>\n<li>\u4f7f\u7528\u9ed8\u8ba4\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u00a0guest\/guest\u00a0\u767b\u5f55\u3002<\/li>\n<li>\u5728\u7ba1\u7406\u754c\u9762\u4e2d\u53ef\u4ee5\u67e5\u770b\u961f\u5217\u72b6\u6001\u3001\u6d88\u606f\u6570\u91cf\u3001\u6d88\u8d39\u8005\u8fde\u63a5\u7b49\u4fe1\u606f\u3002<\/li>\n<h3>10. \u70ed\u90e8\u7f72\u914d\u7f6e<\/h3>\n<p>\u70ed\u90e8\u7f72\u5141\u8bb8\u5728\u4e0d\u91cd\u542f\u5e94\u7528\u7a0b\u5e8f\u7684\u60c5\u51b5\u4e0b\u66f4\u65b0\u4ee3\u7801\u3002\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528\u00a0Spring Boot DevTools\u00a0\u6765\u5b9e\u73b0\u70ed\u90e8\u7f72\u3002<\/p>\n<h4>10.1 \u6dfb\u52a0 DevTools \u4f9d\u8d56<\/h4>\n<p>\u5728\u6bcf\u4e2a Spring Boot \u5e94\u7528\u7a0b\u5e8f\u7684\u00a0pom.xml\u00a0\u4e2d\u6dfb\u52a0 DevTools \u4f9d\u8d56&#xff1a;<\/p>\n<p>xml<\/p>\n<p>&lt;dependency&gt;<br \/>\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;spring-boot-devtools&lt;\/artifactId&gt;<br \/>\n    &lt;scope&gt;runtime&lt;\/scope&gt;<br \/>\n    &lt;optional&gt;true&lt;\/optional&gt;<br \/>\n&lt;\/dependency&gt; <\/p>\n<h4>10.2 \u914d\u7f6e IDE \u652f\u6301<\/h4>\n<h5>10.2.1 IntelliJ IDEA<\/h5>\n<li>\u6253\u5f00\u9879\u76ee\u8bbe\u7f6e&#xff0c;\u8fdb\u5165\u201cBuild, Execution, Deployment\u201d -&gt; \u201cCompiler\u201d\u3002<\/li>\n<li>\u52fe\u9009\u201cBuild project automatically\u201d\u3002<\/li>\n<li>\u6309\u4e0b\u00a0Ctrl &#043; Shift &#043; A&#xff0c;\u8f93\u5165\u201cRegistry\u201d&#xff0c;\u6253\u5f00 Registry \u8bbe\u7f6e\u3002<\/li>\n<li>\u52fe\u9009\u00a0compiler.automake.allow.when.app.running\u3002<\/li>\n<h5>10.2.2 Eclipse<\/h5>\n<li>\u6253\u5f00 Window -&gt; Preferences -&gt; General -&gt; Workspace\u3002<\/li>\n<li>\u52fe\u9009\u201cBuild automatically\u201d\u3002<\/li>\n<h4>10.3 \u6d4b\u8bd5\u70ed\u90e8\u7f72<\/h4>\n<li>\u4fee\u6539\u4efb\u610f\u670d\u52a1\u4e2d\u7684\u4ee3\u7801&#xff08;\u4f8b\u5982\u00a0UserController.java&#xff09;\u3002<\/li>\n<li>\u4fdd\u5b58\u4fee\u6539\u540e&#xff0c;Spring Boot \u5e94\u7528\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u91cd\u65b0\u52a0\u8f7d\u66f4\u6539\u7684\u90e8\u5206\u3002<\/li>\n<li>\u8bbf\u95ee\u76f8\u5173\u63a5\u53e3&#xff0c;\u9a8c\u8bc1\u65b0\u4ee3\u7801\u662f\u5426\u751f\u6548\u3002<\/li>\n<h3>11. \u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4&#xff0c;\u6211\u4eec\u6784\u5efa\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u5fae\u670d\u52a1\u67b6\u6784&#xff0c;\u6db5\u76d6\u4e86\u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0\u3001API \u7f51\u5173\u3001\u7f13\u5b58\u6570\u636e\u5e93 Redis\u3001\u6d88\u606f\u961f\u5217 RabbitMQ\u3001\u65e5\u5fd7\u7ba1\u7406 ELK Stack\u3001\u5bb9\u5668\u5316 Docker\u3001\u8d1f\u8f7d\u5747\u8861 Nginx \u4ee5\u53ca\u70ed\u90e8\u7f72\u7b49\u529f\u80fd\u3002\u8fd9\u4e2a\u67b6\u6784\u4e0d\u4ec5\u80fd\u591f\u6ee1\u8db3\u9ad8\u5e76\u53d1\u3001\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u5f00\u53d1\u9700\u6c42&#xff0c;\u8fd8\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u76d1\u63a7\u548c\u8fd0\u7ef4\u80fd\u529b&#xff0c;\u786e\u4fdd\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u5fae\u670d\u52a1\u67b6\u6784\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u89e3\u4e3a\u4e00\u7ec4\u5c0f\u7684\u3001\u72ec\u7acb\u7684\u670d\u52a1\uff0c\u6bcf\u4e2a\u670d\u52a1\u8fd0\u884c\u5728\u81ea\u5df1\u7684\u8fdb\u7a0b\u4e2d\uff0c\u5e76\u901a\u8fc7\u8f7b\u91cf\u7ea7\u673a\u5236\uff08\u901a\u5e38\u662f HTTP API\uff09\u8fdb\u884c\u901a\u4fe1\u3002\u8fd9\u4e9b\u670d\u52a1\u53ef\u4ee5\u72ec\u7acb\u90e8\u7f72\u3001\u6269\u5c55\u548c\u7ef4\u62a4\u3002\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u6784\u5efa\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u5fae\u670d\u52a1\u67b6\u6784\uff0c\u6db5\u76d6\u4e86\u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0\u3001API \u7f51\u5173\u3001\u7f13\u5b58\u6570\u636e\u5e93 Redis\u3001\u6d88\u606f\u961f\u5217 RabbitMQ\u3001\u65e5\u5fd7\u7ba1\u7406 ELK Stack\u3001\u5bb9\u5668\u5316 Docker\u3001\u8d1f\u8f7d\u5747\u8861 Nginx \u4ee5\u53ca\u70ed\u90e8\u7f72\u7b49\u529f\u80fd\u3002\u8fd9\u4e2a\u67b6\u6784\u4e0d\u4ec5\u80fd\u591f\u6ee1\u8db3\u9ad8\u5e76\u53d1\u3001\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u5f00\u53d1\u9700\u6c42\uff0c\u8fd8\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u76d1\u63a7\u548c\u8fd0\u7ef4\u80fd\u529b\uff0c\u786e\u4fdd\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002_\u5e38\u89c1\u7684\u5fae\u670d\u52a1<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,1348,100,188,398],"topic":[],"class_list":["post-37174","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-1348","tag-100","tag-188","tag-398"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4ecb\u7ecd\uff0c\u5305\u62ec\u5305\u542b\u7f13\u5b58\u6570\u636e\u5e93redis\uff0c\u6d88\u606f\u961f\u5217 RabbitMQ\uff0c\u65e5\u5fd7\u7ba1\u7406ELK\uff0c\u4f7f\u7528docker\u670d\u52a1\u5bb9\u5668\uff0c\u4e14\u91c7\u7528\u70ed\u90e8\u7f72\uff0c\u642d\u5efa\u8fd9\u4e2a\u5fae\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e \u4ee5\u53ca\u90e8\u7f72\u5e94\u7528\u670d\u52a1\uff0c\u65e5\u5fd7\u76d1\u63a7\uff0c\u6d88\u606f\u76d1\u63a7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/37174.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4ecb\u7ecd\uff0c\u5305\u62ec\u5305\u542b\u7f13\u5b58\u6570\u636e\u5e93redis\uff0c\u6d88\u606f\u961f\u5217 RabbitMQ\uff0c\u65e5\u5fd7\u7ba1\u7406ELK\uff0c\u4f7f\u7528docker\u670d\u52a1\u5bb9\u5668\uff0c\u4e14\u91c7\u7528\u70ed\u90e8\u7f72\uff0c\u642d\u5efa\u8fd9\u4e2a\u5fae\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e \u4ee5\u53ca\u90e8\u7f72\u5e94\u7528\u670d\u52a1\uff0c\u65e5\u5fd7\u76d1\u63a7\uff0c\u6d88\u606f\u76d1\u63a7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u5fae\u670d\u52a1\u67b6\u6784\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u89e3\u4e3a\u4e00\u7ec4\u5c0f\u7684\u3001\u72ec\u7acb\u7684\u670d\u52a1\uff0c\u6bcf\u4e2a\u670d\u52a1\u8fd0\u884c\u5728\u81ea\u5df1\u7684\u8fdb\u7a0b\u4e2d\uff0c\u5e76\u901a\u8fc7\u8f7b\u91cf\u7ea7\u673a\u5236\uff08\u901a\u5e38\u662f HTTP API\uff09\u8fdb\u884c\u901a\u4fe1\u3002\u8fd9\u4e9b\u670d\u52a1\u53ef\u4ee5\u72ec\u7acb\u90e8\u7f72\u3001\u6269\u5c55\u548c\u7ef4\u62a4\u3002\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u6784\u5efa\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u5fae\u670d\u52a1\u67b6\u6784\uff0c\u6db5\u76d6\u4e86\u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0\u3001API \u7f51\u5173\u3001\u7f13\u5b58\u6570\u636e\u5e93 Redis\u3001\u6d88\u606f\u961f\u5217 RabbitMQ\u3001\u65e5\u5fd7\u7ba1\u7406 ELK Stack\u3001\u5bb9\u5668\u5316 Docker\u3001\u8d1f\u8f7d\u5747\u8861 Nginx \u4ee5\u53ca\u70ed\u90e8\u7f72\u7b49\u529f\u80fd\u3002\u8fd9\u4e2a\u67b6\u6784\u4e0d\u4ec5\u80fd\u591f\u6ee1\u8db3\u9ad8\u5e76\u53d1\u3001\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u5f00\u53d1\u9700\u6c42\uff0c\u8fd8\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u76d1\u63a7\u548c\u8fd0\u7ef4\u80fd\u529b\uff0c\u786e\u4fdd\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002_\u5e38\u89c1\u7684\u5fae\u670d\u52a1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/37174.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-14T05:16:18+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37174.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/37174.html\",\"name\":\"\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4ecb\u7ecd\uff0c\u5305\u62ec\u5305\u542b\u7f13\u5b58\u6570\u636e\u5e93redis\uff0c\u6d88\u606f\u961f\u5217 RabbitMQ\uff0c\u65e5\u5fd7\u7ba1\u7406ELK\uff0c\u4f7f\u7528docker\u670d\u52a1\u5bb9\u5668\uff0c\u4e14\u91c7\u7528\u70ed\u90e8\u7f72\uff0c\u642d\u5efa\u8fd9\u4e2a\u5fae\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e \u4ee5\u53ca\u90e8\u7f72\u5e94\u7528\u670d\u52a1\uff0c\u65e5\u5fd7\u76d1\u63a7\uff0c\u6d88\u606f\u76d1\u63a7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-14T05:16:18+00:00\",\"dateModified\":\"2025-05-14T05:16:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/37174.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/37174.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37174.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4ecb\u7ecd\uff0c\u5305\u62ec\u5305\u542b\u7f13\u5b58\u6570\u636e\u5e93redis\uff0c\u6d88\u606f\u961f\u5217 RabbitMQ\uff0c\u65e5\u5fd7\u7ba1\u7406ELK\uff0c\u4f7f\u7528docker\u670d\u52a1\u5bb9\u5668\uff0c\u4e14\u91c7\u7528\u70ed\u90e8\u7f72\uff0c\u642d\u5efa\u8fd9\u4e2a\u5fae\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e \u4ee5\u53ca\u90e8\u7f72\u5e94\u7528\u670d\u52a1\uff0c\u65e5\u5fd7\u76d1\u63a7\uff0c\u6d88\u606f\u76d1\u63a7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4ecb\u7ecd\uff0c\u5305\u62ec\u5305\u542b\u7f13\u5b58\u6570\u636e\u5e93redis\uff0c\u6d88\u606f\u961f\u5217 RabbitMQ\uff0c\u65e5\u5fd7\u7ba1\u7406ELK\uff0c\u4f7f\u7528docker\u670d\u52a1\u5bb9\u5668\uff0c\u4e14\u91c7\u7528\u70ed\u90e8\u7f72\uff0c\u642d\u5efa\u8fd9\u4e2a\u5fae\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e \u4ee5\u53ca\u90e8\u7f72\u5e94\u7528\u670d\u52a1\uff0c\u65e5\u5fd7\u76d1\u63a7\uff0c\u6d88\u606f\u76d1\u63a7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/37174.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4ecb\u7ecd\uff0c\u5305\u62ec\u5305\u542b\u7f13\u5b58\u6570\u636e\u5e93redis\uff0c\u6d88\u606f\u961f\u5217 RabbitMQ\uff0c\u65e5\u5fd7\u7ba1\u7406ELK\uff0c\u4f7f\u7528docker\u670d\u52a1\u5bb9\u5668\uff0c\u4e14\u91c7\u7528\u70ed\u90e8\u7f72\uff0c\u642d\u5efa\u8fd9\u4e2a\u5fae\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e \u4ee5\u53ca\u90e8\u7f72\u5e94\u7528\u670d\u52a1\uff0c\u65e5\u5fd7\u76d1\u63a7\uff0c\u6d88\u606f\u76d1\u63a7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u5fae\u670d\u52a1\u67b6\u6784\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u89e3\u4e3a\u4e00\u7ec4\u5c0f\u7684\u3001\u72ec\u7acb\u7684\u670d\u52a1\uff0c\u6bcf\u4e2a\u670d\u52a1\u8fd0\u884c\u5728\u81ea\u5df1\u7684\u8fdb\u7a0b\u4e2d\uff0c\u5e76\u901a\u8fc7\u8f7b\u91cf\u7ea7\u673a\u5236\uff08\u901a\u5e38\u662f HTTP API\uff09\u8fdb\u884c\u901a\u4fe1\u3002\u8fd9\u4e9b\u670d\u52a1\u53ef\u4ee5\u72ec\u7acb\u90e8\u7f72\u3001\u6269\u5c55\u548c\u7ef4\u62a4\u3002\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u6784\u5efa\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u5fae\u670d\u52a1\u67b6\u6784\uff0c\u6db5\u76d6\u4e86\u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0\u3001API \u7f51\u5173\u3001\u7f13\u5b58\u6570\u636e\u5e93 Redis\u3001\u6d88\u606f\u961f\u5217 RabbitMQ\u3001\u65e5\u5fd7\u7ba1\u7406 ELK Stack\u3001\u5bb9\u5668\u5316 Docker\u3001\u8d1f\u8f7d\u5747\u8861 Nginx \u4ee5\u53ca\u70ed\u90e8\u7f72\u7b49\u529f\u80fd\u3002\u8fd9\u4e2a\u67b6\u6784\u4e0d\u4ec5\u80fd\u591f\u6ee1\u8db3\u9ad8\u5e76\u53d1\u3001\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u5f00\u53d1\u9700\u6c42\uff0c\u8fd8\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u76d1\u63a7\u548c\u8fd0\u7ef4\u80fd\u529b\uff0c\u786e\u4fdd\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002_\u5e38\u89c1\u7684\u5fae\u670d\u52a1","og_url":"https:\/\/www.wsisp.com\/helps\/37174.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-14T05:16:18+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"9 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/37174.html","url":"https:\/\/www.wsisp.com\/helps\/37174.html","name":"\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4ecb\u7ecd\uff0c\u5305\u62ec\u5305\u542b\u7f13\u5b58\u6570\u636e\u5e93redis\uff0c\u6d88\u606f\u961f\u5217 RabbitMQ\uff0c\u65e5\u5fd7\u7ba1\u7406ELK\uff0c\u4f7f\u7528docker\u670d\u52a1\u5bb9\u5668\uff0c\u4e14\u91c7\u7528\u70ed\u90e8\u7f72\uff0c\u642d\u5efa\u8fd9\u4e2a\u5fae\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e \u4ee5\u53ca\u90e8\u7f72\u5e94\u7528\u670d\u52a1\uff0c\u65e5\u5fd7\u76d1\u63a7\uff0c\u6d88\u606f\u76d1\u63a7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-14T05:16:18+00:00","dateModified":"2025-05-14T05:16:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/37174.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/37174.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/37174.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4ecb\u7ecd\uff0c\u5305\u62ec\u5305\u542b\u7f13\u5b58\u6570\u636e\u5e93redis\uff0c\u6d88\u606f\u961f\u5217 RabbitMQ\uff0c\u65e5\u5fd7\u7ba1\u7406ELK\uff0c\u4f7f\u7528docker\u670d\u52a1\u5bb9\u5668\uff0c\u4e14\u91c7\u7528\u70ed\u90e8\u7f72\uff0c\u642d\u5efa\u8fd9\u4e2a\u5fae\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e \u4ee5\u53ca\u90e8\u7f72\u5e94\u7528\u670d\u52a1\uff0c\u65e5\u5fd7\u76d1\u63a7\uff0c\u6d88\u606f\u76d1\u63a7"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/37174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=37174"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/37174\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=37174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=37174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=37174"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=37174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}