I'm combining ajax with push. So it's a real push service, the website
is not pulling the data on a constant time rate.
A process per client is really bad. I'll need to serve hundreds of
client at the same time. Seems like push is not an option...
Am 05.03.2008 um 19:39 schrieb Brian Kirkbride:
Moritz Onken wrote:
Hi,
I consider offering a push service for real-time data. It's AJAX
based and requires a consistent connection.
I'm not sure about the memory usage of this. I plan to run the
catalyst app as fastcgi server. Does every consistent connection
create an extra fastcgi process? Which means an additional ~30mb
(if that's the size of a fastcgi process)?
moritz
If it's AJAX then you are really polling as opposed to pushing. In
this case Lighttpd or Nginx are your friends. They can handle all
of the connections (with a long KeepAlive) and only talk to the
backend FastCGI when a poll request comes through from the AJAX
client.
If you're really pushing with a constantly connected client, you'll
need a FastCGI process per client. The difference is who initiates
communication over the channel. If the server can send to the
client at any moment, that's true push. Most people get along with
a rapidly polling client that says "Anything for me?" every so often.
In general polling is wasteful of bandwidth, while push is wasteful
of server-side resources.
Best,
Brian
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/