perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <phark...@gmail.com>
Subject Re: AJAX pseudo-push
Date Thu, 12 Nov 2009 21:20:55 GMT
On Thu, Nov 12, 2009 at 3:33 PM, Nicolas George
<nicolas.george@normalesup.org> wrote:
> I will definitely not use polling, because polling means dozen of useless
> requests and, when there is actually something, it has to wait to the next
> round of polling.

That's good enough for most applications, and the "nothing to see
here" requests can be handled very quickly.

If you really need to use Comet, the common approach is a non-blocking
server architecture.  If you want to use mod_perl for it, you can read
about the approach Stas used here:
lxxi.org/files/spamcon07/Bekman-SMTP_Multiplexing.pdf

They wrote their own server that passes off to apache when something
happens, but these days you could use perlbal as your base.  You can
look at things like lighttpd + FastCGI too, but you'd probably have to
write some C code there to avoid keeping a perl process busy.

- Perrin

Mime
View raw message