Hi,

I'm trying to explore if there are ways to batch message processing.
Batching message processing would help us improve performance for some of
our use cases,
where we could chunk messages and process them in a single callback.

Have anyone here explored building a layer to batch messages.

I am using the Java Broker and the Java client.

I would like to stick to the JMS api as much as possible.

This is what I currently have, still wondering if it'd work.

1) When the onMessage() callback is triggered, create a consumer a pull
more messages to process from the queue where the message was delivered
from.
2) Pull messages upto the number of my max chunk size, or upto the messages
available in the queue.
3) process all the messages together and commit on the session.

I'd like to hear ideas on how to go about this.

Thanks,
-- 
-Praveen

Reply via email to