[rabbitmq-discuss] smallest amount of work for a consumer
michael.s.klishin at gmail.com
Tue May 14 17:34:47 BST 2013
2013/5/14 ppafford <phillpafford at gmail.com>
> So my question is, when would I break out the bullet points into smaller
> consumers? The consumer as is runs fine but I feel it's getting too large
> and needs to be refactored into smaller, more manageable processes.
> Should each bullet point be it's own consumer? I can see breaking them up
> into three consumers
Do these steps have any interdependencies between them, e.g. C depends on A
How are your queues organized? Is there a single message that triggers all
If these steps can be described as a single unit of work, you can use a
with explicit acknowledgements and structure your code as a composed method
then acknowledge the message at the end.
If there are reasons to try to parallelize these steps, multiple queues and
consumers may help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss