【发布时间】: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