How Are Message Stored by ActiveMQ?
We are pleased to offer you an excerpt from the book “ActiveMQ in Action,” by Bruce Snyder, Dejan Bosanac, and Rob Davies.
The authors show how messages are stored for queues and topics and explain the various message store implementations, their configurations, and when to use each. The excerpt begins with
An understanding of storage mechanisms for messages in an ActiveMQ message store aid in configuration and provide an awareness of what takes place in the ActiveMQ broker during the delivery of persistent messages. Messages sent to queues and topics are stored differently, because some storage optimizations can be made with Topics that do not make sense with Queues, as we will explain.
Storage for queues is straightforward. Messages are stored in a first-in, first-out (FIFO) order. One message is dispatched to a single consumer at a time. Only when that message has been consumed and acknowledged can it be deleted from the broker's message store.
Learn more - get the entire excerpt today!
GET THIS WHITE PAPER NOW!