Re: PlRPC vs POE as core P5EE Server

[email protected] (Perrin Harkins)
Newsgroups perl.p5ee
Message-ID <[email protected]>
Stephen Adkins wrote:
> Yes, I like Apache/mod_perl for everything that can be satisfied
> within a short period of time (i.e. synchronous calls).  
> However, when I initiate tasks from a browser which take a long time, 
> I think the work needs to be offloaded to another server... one that 
> can stick around and do the work.

I don't see how another server is more able to "stick around" than 
mod_perl.  You can simply send back a "message received" indication, cut 
the connection to the client, and do the work.

> Furthermore,
> requests need to be queued.  This is not a good use for a web server.
> Thus the need for another server.

A system for processing queues is very different from an RPC server. 
Any of these servers (including mod_perl) would be good for putting 
requests in the queue, but for processing the queue you would want 
something different, like a simple forked daemon that has no RPC component.

- Perrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.