4 ms·
A gazillion-user comet server with C
I'm going to be implementing chat soon in this product I'm building (kind of keeping it on the DL until I have something big to show)... so I started researching comet servers. And I came across this:
http://aleccolocco.blogspot.com/2008/10/gazillion-user-comet-server-with.html
Whoa nelly, this should do nicely. Thought I'd share.
- exit 16y agoyou should probably structure this submission different.
- sgt 16y agoIt's not so bad. It's just one of those "hey, found something cool. Here's a link, if you're interested".
- sgt 16y agoClickable link [http://aleccolocco.blogspot.com/2008/10/gazillion-user-comet-server-with.html http://aleccolocco.blogspot.com/2008/10/gazillion-user-comet...]
- aonic 16y agoI would recommend nodejs or the twisted framework for python if you don't want to go the C route
- extension 16y agoor mongrel2
- alecco 16y agoTwisted works well but as with most dynamic versions it gets too non-deterministic for my taste. You have to monitor those. I barely skimmed node.js, it looks very good. I have an nginx-V8 module for a web framwork I'm working on. Both give very good control to keep the system with nice logarithmic resource usage, without spikes. One of my unfinished blog drafts talks about it.
- flipdeadshot 16y agoAdded bonus is that it's web scale.
- ItarPeyo 16y agoBased on the same async IO fundamentals: Orbited is a complete solution based on Twisted. It handles the most difficult part - crossbrowser portability already - http://orbited.org/ http://orbited.org/
- jaddison 16y agoToo bad he never finished his 4-part write up. The linked article was pretty interesting to read. In one of his later postings he mentioned APE (AJAX Push Engine) - anyone taken a look at that?
- alecco 16y agoI'm ashamed for not finishing up in so long. 2008! The post was following Richard Jones' Mochiweb/erlang "Million-user" implementation. And he ended up using a libevent-based solution to handle connections in front of Mochiweb :-/ Also note the post on Linux ephemeral port issue: http://aleccolocco.blogspot.com/2008/11/ephemeral-ports-problem-and-solution.html http://aleccolocco.blogspot.com/2008/11/ephemeral-ports-prob... Niels, from /dev/poll (back then) and libevent fame got into the thread. Well, OK. It's Sunday and it's beautiful outside, but let's see if I can get some update today.
- alecco 16y ago[If anybody is reading this...] The Orbited team released Hookbox, and it looks amazing. http://hookbox.org/ http://hookbox.org/ Also there's an nginx push module by Leo aka "shell". http://pushmodule.slact.net/ http://pushmodule.slact.net/ I doubt I can add to the conversation now.
- revoltingx 16y agoLooks cool, but I'm much rather use Erlang because of the whole framework it provides.