[zeromq-dev] 0MQ 2.0 Model Question

tom schuring tomschuring at gmail.com
Thu Oct 8 11:10:01 CEST 2009


On 08/10/2009, at 20:03 PM, Martin Sustrik wrote:

> tom schuring wrote:
>> Hi Martin,
>> thank you for your reply
>>>
>>> The alternative is req/rep model, where each message exchange is  
>>> initiated by requester. The number of messages is always finite  
>>> (request+reply). In this case messages are never dropped.
>>>
>> ah, so in that case the requester can only send 1 message when the  
>> connection is down ? and only when the other side replies (for  
>> example when the connection is restored) can the requester send  
>> another message ?
>
> Yes. That's the case. You can of course think of different messaging  
> models aside of pub/sub and req/rep, however, these two are most  
> common so they were implemented first.
>
> Martin


but what is the advantage of using 0MQ in the req/rep model then ?  
using normal sockets i can also make sure that the message is received  
by waiting of an 'ack'.  are there any other messaging models on the  
drawing board that might be implemented ?

thanks,
tom






More information about the zeromq-dev mailing list