[openstack-dev] [Ceilometer][Oslo] Consuming Notifications in Batches
julien at danjou.info
Fri Dec 20 21:47:02 UTC 2013
On Fri, Dec 20 2013, Herndon, John Luke wrote:
> I think this will work. I was considering putting in a timeout so the broker
> would not send off all of the messages immediately, and implement using
> blocking calls. If the consumer consumes faster than the publishers are
> publishing, this just becomes single-notification batches. So it may be
> beneficial to wait for more messages to arrive before sending off the batch.
> If the batch is full before the timeout is reached, then the batch would be
> sent off.
I don't think you want to wait for other messages if you only picked on,
event with a timeout. It's better to record this one right away; while
you do that messages will potentially queue up in queue so on your next
call you'll pick more than one anyway.
Otherwise, yeah that should work fine.
# Free Software hacker # independent consultant
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 832 bytes
Desc: not available
More information about the OpenStack-dev