[rabbitmq-discuss] Problem when enqueuing with no delay

Michael Klishin mklishin at gopivotal.com
Wed Sep 11 12:50:23 BST 2013


Pablo Briongos:

> But I don't understand why this problem is happening with the ampq interface, but with stomp interface and the same loop, it doesn't occur:
> 
>  while true do
>                     client.publish "queue0", message,{'amq-msg-type'=>'text', 'type'=>'content',:persistent => true)}
>                     progress(1)    
>                     sleep(0.000000000001)       
> end

This is not the same as periodic timer with period = 0. You still sleep, no matter for how
tiny a period.

Profiling memory usage will tell but I doubt many use EventMachine timers with period = 0,
so there can potentially be issues there, too.

MK



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130911/6b75d140/attachment.pgp>


More information about the rabbitmq-discuss mailing list