Spring
Ollama文档
Grok文档
OpenAI文档
Pytorch文档
Copilot文档
OpenClaw文档
GeminiAI文档
markdown教程
LangChain开发文档
全部版本
切换语言
中文 English
所有文档
  • 最新文档
  • Spring AI Spring Boot Spring Framework Spring Cloud Spring Cloud Data Flow Spring Data Spring Integration Spring Batch Spring Security 全部项目
  • 开发工具(英文)
  • Spring.io Spring Tools 4 Spring Initializr
    Spring Cloud Bus Spring Cloud Bus links the nodes of a distributed system with a lightweight message broker. This broker can then be used to broadcast state changes (such as configuration changes) or other management instructions. A key idea is that the bus is like a distributed actuator for a Spring Boot application that is scaled out. However, it can also be used as a communication channel between apps. This project provides starters for either an AMQP broker or Kafka as the transport.
      • 1. 快速入门
      • 2. 业务端点
      • 3. 解决实例问题
      • 4. 处理服务的所有实例
      • 5. 服务 ID 必须唯一
      • 6. 自定义消息代理
      • 7. 追踪总线事件
      • 8. 广播您自己的事件
      • 9. 配置属性
    GitHub Project

    4. 处理服务的所有实例

    “destination”参数在Spring PathMatcher(路径分隔符为冒号——:)中用于确定实例是否处理该消息。以先前示例为例,/busenv/customers:** 指向所有“customers”服务的实例,而不论服务ID的其余部分如何。spring-doc.cadn.net.cn

    • Spring Cloud Bus
    • 4. 处理服务的所有实例

    3. 解决实例问题 5. 服务 ID 必须唯一
    Spring

    本站点文档内容均由 Spring官网 翻译而来,翻译内容可能存在遗漏或偏差,仅供个人学习,准确内容请以 Spring官网英文文档 为准。
    Copyright © 2005 - 2026 南京筱麦软件有限公司 ( 苏ICP备2022047690号-3 | 苏公网安备32011402011833 )