You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
827 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

消息中心应用
----------
## 关键词
`消息中心、mq、rabbitmq、Spring Cloud Bus、消息总线`
## 简介
分布式中的其他服务都连接到消息系统并且实现消息的生产、监听、和消费可以用来建立一个多个应用之间的通信频道以达到系统解耦、流量削锋、异步通讯等本例中使用的是rabbitMQ你也可以换成其它的如Kafka、RocketMq等
利用消息中心的机制可以做很多的事情,比如日志、指标的收集等,其中配置中心客户端刷新就是典型的应用场景之一,详情请见[配置中心文档](./center/config)。
## 启动
### 先决条件
- [rabbitmq](http://rabbitmq.io/download)
### 启动命令
进入应用目录
启动命令:`mvn spring-boot:run`
docker镜像打包`mvn docker:build`