[openstack-dev] [Ceilometer][Oslo] Consuming Notifications in Batches

Julien Danjou 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.

-- 
Julien Danjou
# Free Software hacker # independent consultant
# http://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131220/aeb42819/attachment.pgp>


More information about the OpenStack-dev mailing list