Enterprise Service Bus (.NET flavors) - Consuming a batch of messages at a time

1.1k views Asked by At

Is there a way to delay the consumption of a message in an Enterprise Service Bus until either X similar messages are ready or Y time elapsed?

My goal is to serialize and aggregate several messages in the consumer so I don't hit my storage for a message, but for a batch instead.

I'm currently playing with Rhino ESB. I would like to know my options with this ESB or any other you know about.

Thanks!

1

There are 1 answers

5
Adam Fyles On BEST ANSWER

In NServiceBus you can send a batch of messages in a single call. This will process as if each message was send individually. The other option is to use a Saga, or long-running workflow that is built-in. You can uniquely identify and correlate message state and leverage a timeout mechanism that keeps track of time.