[rabbitmq-discuss] [rabbitmq-stomp] Is the use of receipt header for SUBSCRIBE still recommended?

Michael Justin michael.justin at gmx.net
Tue Jan 28 18:58:13 GMT 2014


On 26.01.2014 12:17, Matthias Radestock wrote:

 > There is actually no other way it could work. i.e. if you issue a
 > SUBSCRIBE on one connection and then a SEND on another, in the absence
 > of an acknowledgement from the server - which is what the RECEIPT header
 > provides - then those two commands will simply race each other, leading
 > to a non-deterministic outcome.

Yes, I was in error - there is obviously a race condition in this case 
which makes the RECEIPT necessary for the SUBSCRIBE, to guarantee that 
the destination exists before any messages are sent. Thank you for 
clarifying this, obviously this is the only way it can work.

Regards
-- 
Michael Justin



More information about the rabbitmq-discuss mailing list