【问题标题】:spring cloud stream request-replyspring 云流请求-回复
【发布时间】:2020-10-24 20:37:53
【问题描述】:

在春季 amqp 中,我像这样使用 rpc:

    public void send() {
    System.out.println(" [x] Requesting fib(" + start + ")");
    Integer response = (Integer) template.convertSendAndReceive
        (exchange.getName(), "rpc", start++);
    System.out.println(" [.] Got '" + response + "'");
}

但是当我有多个发送方实例和多个接收方实例时,我可以在 Spring Cloud Stream 中做什么?
首先,我需要知道热才能在单实例模式下获得响应
其次,我需要知道当有
多个实例时如何接收响应

【问题讨论】:

    标签: spring-boot spring-cloud spring-cloud-stream


    【解决方案1】:

    有关一些讨论和可能的解决方案,请参阅此 GH 问题:https://github.com/spring-cloud/spring-cloud-stream/issues/815

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-11-24
      • 2023-02-07
      • 2021-01-14
      • 2016-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多