Facebook Chat and Comet Scaling
by Dylan SchiemannMay 16th, 2008High Scalability is featuring a detailed analysis describing how the New Facebook Chat Feature Scales to 70 Million Users Using Erlang. Points of interest include:
- long-polling
- XMPP assumes persistent connections, so they store information on the server-side until connections become available
- Erlang for handling large numbers of concurrent connections
- Thrift was used to allow the PHP, Javascript, Erlang, and C++ parts of their system to invoke each other
Check out the full article for more details on building a web-based IM platform that supports 70 million users.










May 22nd, 2008 at 6:21 am
[...] Cometd would have taken much more effort. On the other hand if, like Facebook, we’d wanted to use Erlang to overcome threading problems, DWR would have been a [...]
October 17th, 2008 at 9:10 am
[...] Erlang and MochiWeb continue to gain popularity in the Comet space. Other recent Comet Erlang stories include Roberto Saccon’s Getting Started with Comet on Erlang, and Facebook’s use of ejabberd. [...]
August 11th, 2010 at 8:48 pm
The old link is broken. The new link is http://highscalability.com/blog/2008/5/14/new-facebook-chat-feature-scales-to-70-million-users-using-e.html