"Http://www.ylzx8.cn/ruanjiangongcheng/software-architecture-design/11922.html"
ACITVEMQ: The message store and distribution component, which involves all aspects of client and broker-side data interaction, not only guarantees the storage security of the message, but also provides additional means to ensure that the message is distributed reliably.
"ACTIVEMQ Message delivery mechanism"
Producer clients are used to send messages, consumer clients consume messages, and their collaborating centers are ACTIVEMQ Broker,broker, which is also a tool for decoupling producer and consumer calls, eventually implementing asynchronous rpc/ The function of data exchange. With the continuous development of ACTIVEMQ, more and more features are supported, and the need for developers to use ACTIVEMQ in a variety of scenarios is also addressed. For example, producer supports asynchronous invocation, using the flow control mechanism to enable broker to consumer consumption rate, consumer can use Prefetchack to maximize the rate of message consumption, provide "re-send Policy" and so on to improve the security of messages.
The picture simply describes the life cycle of a message, but in different architectural environments, the flow line of message may be more complex. will be explained later in the schema about broker: Once a message is issued from the producer side, once it is properly saved by the broker, it will be consumed by the consumer and then deleted by the Ack,broker side, but it will also be terminated when the message expires or when the storage device overflows.
ACTIVEMQ Message delivery mechanism and an explanation of the ACK mechanism