[Spread-users] Competing consumer

Yair Amir yairamir at cnds.jhu.edu
Mon Mar 22 19:30:09 EST 2004

Hi guys,

You might want to read this past message on how to do round-robin
correctly with Spread, which seems what Leon is after.



:) Yair.

On Monday, March 22, 2004 5:42 PM
John Schultz jschultz at spreadconcepts.com wrote:

John> So, do you want a Spread daemon to map a single identity that it is 
John> serving to multiple connections and push copies of the messages meant 
John> for the single identity down those multiple connections?

John> If that is what you want you, then you could patch Spread to do this, 
John> although it would be non-trivial.  I have not heard of anyone doing this 
John> with Spread previously.

John> You currently can have multiple threads within the same process compete 
John> for messages on the same connection.  However, you lose the strong 
John> message ordering guarantees of Spread due to the uncertainty of threads 
John> swapping in and out.  Also, if you are closing and opening connections 
John> you could trigger a known race condition that currently exists inside 
John> the client library.

John> Good luck!
John> John

John> -- 
John> John Lane Schultz
John> Spread Concepts LLC
John> Phn: 443 838 2200

John> Leon Brocard wrote:
>> John Schultz sent the following bits through the ether:
>>>Could you describe what you mean by "competing consumers" and why you 
>>>think it might need a patch?
>> Here's a pretty picture:
>> http://www.eaipatterns.com/CompetingConsumers.html
>> I am asking about what JMS calls the point-to-point style of
>> messaging. Spread does the publish-and-subscribe fine, but currently I
>> belive I need the former. Is this clearer?
>> Leon

More information about the Spread-users mailing list