[rabbitmq-discuss] Rebilling Customers

Jerry Kuch jerryk at vmware.com
Mon Nov 21 21:41:26 GMT 2011

Hi, Chad...

What you're describing sounds like a fairly standard work queue type 
design and many people use RabbitMQ for such things.  I assume that
the billing/invoice-generation process is something potentially time
consuming that you want to be doing with multiple workers running in
parallel asynchronously?

In that case the pattern in this tutorial (available in Python and 
Java versions) will be of interest to you:


Best regards,

----- Original Message -----
From: "Chad Tomkiss" <chadtomkiss at hotmail.co.uk>
To: rabbitmq-discuss at lists.rabbitmq.com
Sent: Monday, November 21, 2011 4:07:25 AM
Subject: [rabbitmq-discuss] Rebilling Customers


Im thinking of using a message queue to deal with our customer's

Currently, we run a cron every 5 mins to bill 20 people/send invoice
etc, but not comfortable with this approach as the num of people
needed to bill increases, with the chance of cron overlapping etc.

Would it make sense to add all subscriptionIDs to a queue.. and then
set up workers to process the queue by getting the ID and then billing
that subscription?

Any help or suggestions would be much appreciated.

Kind regards,

rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com

More information about the rabbitmq-discuss mailing list