我们将有一个集群,比如3个节点,现在我们将传递三个地址来创建连接:
factory.newConnection(consumerExecutor, addresses, clinetProviedName);// addresses has three elements
问题:
1 .Since a queue is created in only one node which is master say nodeA. So if I create a connection to nodeB, does RabbitMQ need to redirect every publish requests to the nodeA from nodeB?
2. Will the same things happen to consumers?
3. Does Redirect makes a big difference on performance when qps is high? We need tens of thousands qps to support our app.
4. If #1 is right, how can I connect to the exactly right node to reduce redirect.
答案 0 :(得分:0)
RabbitMQ团队监控this mailing list,有时只回答StackOverflow上的问题。
是
是
不,但您的基准和监控肯定会回答它。你有基准和监控,对吗?
这不值得麻烦。如果您真的认为值得,Spring AMQP库确实具有节点关联功能。