[rabbitmq-discuss] Message wait time in a queue

Ask Solem ask at rabbitmq.com
Tue Feb 7 18:48:33 GMT 2012

On Feb 7, 2012, at 5:22 PM, rasadoll <rasadoll at gmail.com> wrote:

> If the publisher and consumer are on different machines, this approach
> will not work correctly as their clocks are not synchronized.

Well, with network synchronized clocks it should be good enough for most use cases, but you didn't tell us yours.

> On Feb 7, 12:16 pm, Ask Solem <a... at rabbitmq.com> wrote:
>> On 7 Feb 2012, at 17:05, rasadoll wrote:
>>> Thanks Jerry,
>>> Your direction would help us to partially address our problem, but we
>>> are still interested about the wait time to further optimize our
>>> system. We know the time to process and ack a message but we don't
>>> know how long it took to start its processing.
>> You could add a timestamp to the message headers when you publish the message,
>> the subtract that when you consume it.
>> Of course then the time will include the time it took to send the message, but
>> that is probably not an issue?
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-disc... at lists.rabbitmq.comhttps://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

More information about the rabbitmq-discuss mailing list