I figured it out<br><br>$ret = $this->channel->publish(json_encode($data), $this->routingKey, AMQP_IMMEDIATE, array('Content-type' => 'text/json', 'delivery_mode' => 2,));<br><br><br>
AMQP_IMMEDIATE is the problem it would randomly drop messages. Thanks for making it clear for me.<br><br><div class="gmail_quote">On Thu, Mar 22, 2012 at 9:32 AM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, definitely. Messages will not leave queues unless they are consumed or expire.<br>
<br>
If you are still having trouble could you post your source code somewhere?<br>
<br>
Cheers, Simon<div class="im"><br>
<br>
On 22/03/12 16:28, Dathan Pattishall wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hey Simon,<br>
<br>
Any idea on what I could look at? From the sounds of it - my settings<br>
should cause rabbit to queue if the consumer is not available.<br>
<br>
On Wed, Mar 21, 2012 at 8:43 AM, Dathan Pattishall<br></div><div class="im">
<<a href="mailto:dathan@schoolfeed.com" target="_blank">dathan@schoolfeed.com</a> <mailto:<a href="mailto:dathan@schoolfeed.com" target="_blank">dathan@schoolfeed.com</a>><u></u>> wrote:<br>
<br>
120000 additionally I turned that off as well.<br>
<br>
<br>
On Wed, Mar 21, 2012 at 4:51 AM, Simon MacMullen <<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a><br></div><div class="im">
<mailto:<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>>> wrote:<br>
<br>
On 21/03/12 00:15, Dathan Pattishall wrote:<br>
<br>
My messages have a 120 second expire time<br>
<br>
<br>
Just to be clear, did you set x-message-ttl to 120 or 120000?<br>
The time is in milliseconds, and what you report sounds a lot<br>
like the messages expiring near-instantly.<br>
<br>
Cheers, Simon<br>
<br>
--<br>
Simon MacMullen<br>
RabbitMQ, VMware<br></div>
______________________________<u></u>___________________<br>
rabbitmq-discuss mailing list<br>
rabbitmq-discuss@lists.__<a href="http://rabbitmq.com" target="_blank">rabbi<u></u>tmq.com</a><br>
<mailto:<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@<u></u>lists.rabbitmq.com</a>><br>
<a href="https://lists.rabbitmq.com/__cgi-bin/mailman/listinfo/__rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/__<u></u>cgi-bin/mailman/listinfo/__<u></u>rabbitmq-discuss</a><br>
<<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a>><br>
<br>
<br>
<br>
</blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, VMware<br>
</div></div></blockquote></div><br>