Alibaba cloud Q & A 2022-02-13 08:06:23 阅读数:375
RabbitMQ Of work What is the working mode ？
The message producer puts the message into the queue and the consumer can have multiple , consumer 1, consumer 2 Listen to the same queue at the same time , The news was consumed .C1 C2 Compete for the current message queue content , Who takes charge of the consumption information first ( hidden danger ： High concurrency , By default, a message will be generated and used by multiple consumers , A switch can be set (syncronize) Ensure that a message can only be used by one consumer ).
copyright：author[Alibaba cloud Q & A]，Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130806219711.html