請先查看我的代碼。 這是我的測試類這是創建2000線程和那些線程正在發送消息。 public class MessageSenderMultipleThreadMock {
@Autowired
MessageList message;
@Autowired
MessageSender sender;
public boolean process
在Rabbit MQ中使用集羣時,我打算使用Competing Subscriber模式。 Producer : 1
Exchange : 1 direct
Queue : 1
Consumers : n (multiple) listening to the same queue.
現在,如果我有一個包含3個節點的羣集中,會有但是從其中消費者獲取消息(無論在集羣節點的數目的)一個隊列。