But I run the receiver first, THEN run the sender (sorry if that was not 
clear). In that case, shouldn't the receiver get ALL messages sent by the 
sender?

----- Original Message -----
From: [email protected] <[email protected]>
To: Emit Sorrels <[email protected]>
Cc: [email protected] <[email protected]>
Sent: Wed Mar 10 04:45:24 2010
Subject: Re: [zeromq-dev] Is Pub/Sub unreliable

Emit Sorrels wrote:

>> This works erratically. Sometimes receiver receives less than 20
>> messages; sometimes it receives NONE.
>>
>> Is it the case that PUB/SUB sockets are unreliable? This is sort of a
>> surprise to me... If they are not, what could explain this behavior?
>> Thanks in advance.
>>
> 
> if a tree falls in the forest and no one is there to hear it does
> it make a sound? :P
> 
> afaik, pub doesn't queue up all the messages you send and resend
> old messages to subs that connect later on. it isn't used for
> such a use case.

Right. PUB/SUB works like a radio transmission. PUB is emitting 
continuous stream of messages. Individual SUBs connect, start receiving 
the stream from the point where they joined in and eventually leave the 
stream later on.

Martin
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

----------------------------------------- 
Declaración de confidencialidad: Este Mensaje esta destinado para
el uso de la o las personas o entidades a quien ha sido dirigido y
puede contener información reservada y confidencial que no puede
ser divulgada, difundida, ni aprovechada en forma alguna. El uso no
autorizado de la información contenida en este correo podrá ser
sancionado de conformidad con la ley chilena. 
Si usted ha recibido este correo electrónico por error, le pedimos
eliminarlo junto con los archivos adjuntos y avisar inmediatamente
al remitente, respondiendo este mensaje. 

"Before printing this e-mail think if is really necesary".
Disclosure: This Message is to be used by the individual,
individuals or entities that it is addressed to and may include
private and confidential information that may not be disclosed,
made public nor used in any way at all. Unauthorized use of the
information in this electronic mail message may be subject to the
penalties set forth by Chilean law. 
If you have received this electronic mail message in error, we ask
you to destroy the message and its attached file(s) and to
immediately notify the sender by answering this message. 
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to