Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Abandoned
-
5.3.0
-
None
-
N/A
Description
Add ActiveMQSession.WINDOW_ACKNOWLEDGE (or some other constant) to enable acknowledgement of a number of messages at once from a consumer. In this mode, the message
being acknowledged will indicate all messages since the last acknowledgement up to the specified messages are then acknowledged.
This assumes that there's message ordering in place (which is already be there for queues and CLIENT_ACKNOWLEDGE mode).
This will allow consumers to indicate to the broker precisely what messages have been processed, as well as decouple delivery of messages from processing them without the need to store them
locally on the consumer persistently themselves. This will minimise network chitchat that would otherwise occur with INDIVIDUAL_ACKNOWLEDGE, and will add certainty about the state of
delivery of messages that is not possible with CLIENT_ACKNOWLEDGE (as there can be lots of messages in flight sent by the broker but not yet processed).