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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to