[Spread-users] Spread and queuing

Roberto.Diaz at fastmobile.com Roberto.Diaz at fastmobile.com
Fri Nov 4 17:37:27 EST 2005

i've implemented a similar "service pool" using spread. 

i wasn't sure if spread could do it "automagically" for me, so i wrote a
simple set of classes that listen for nodes that connect to the daemon,
keep track of each registered service instance (segregated by service
type), and recieves requests for service. it then allocates one of the
available service instances from its list and forwards the request to
that service instance. the allocation algorithm can be round robin,
least loaded, etc scheduling.

of course, the service nodes have to announce their presence when they
start up.



> -----Original Message-----
> From: spread-users-bounces at lists.spread.org 
> [mailto:spread-users-bounces at lists.spread.org] On Behalf Of 
> Colin Meyer
> Sent: Friday, November 04, 2005 4:05 PM
> To: spread-users at lists.spread.org
> Subject: [Spread-users] Spread and queuing
> Spreaders,
> I am new to Spread, and am exploring it for use in an application.
> The problem I am trying to solve is communicating between a 
> web application front end (mod_perl) and many "data provider" 
> backends.
> The application accepts search requests and applies them 
> against a number of data provider backends, which may be 
> local databases, other local applications, or remote 
> applications (REST and other). The data providers each have a 
> Perl based front end, which interfaces between whatever the 
> real data source is, and the API that the mod_perl web front 
> end knows how to talk to. Each data provider type will have 
> multiple child processes (so that many queries may be 
> processed simultaneously).
> I would like to define a Spread group for each data provider 
> type, that all of its children would join, and listen for 
> requests. However, it seems that Spread's behavior is to 
> always send each message to all listeners joined to the 
> group. I would prefer to have a first-comer gets to handle 
> the request, while the other children keep listening for 
> other requests.
> Can I have Spread act in this fashion, or am I barking up the 
> wrong tree?
> And a side note: is it possible to increase the maximum 
> message size to larger than 100k by recompiling Spread, or 
> should I just chunk large messages at the application level?
> Thanks for your help,
> -Colin.
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users

More information about the Spread-users mailing list