Re: modperl and comet?

"Octavian Rasnita" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <DF45C1C9CE304376B90CCBCC9C243251@teddy>
From: "E R" <[email protected]>
Subject: modperl and comet?


> I'm interested in adding a Comet capability to a (rather large)
> mod-perl application.
> 
> To get around XSS limitations, the Comet service will have the same
> host and port as the web service. However, I don't want a large
> mod-perl process tied up performing the Comet service.
> 
> Is there a way that a web request can be passed off to another process
> without tying up the Apache process? For instance, can the Apache
> process pass the file descriptors for the HTTP connection to another
> process which would free itself up for handling the next Apache
> request?
> 
> Is there another way to implement this?
> 
> Thanks,
> ER

You can use a very thin front-end Apache reverse proxy or load balancer that forwards the requests to one or more back-end Apache servers that use mod_perl.

You can set the front-end server to forward the requests to some paths to a comet server.

This solution is scalable if the trafic increases.

Read more about the Apache modules mod_proxy and mod_proxy_balancer.

Octavian
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.