Facebook chat is developed in Erlang

Posted by Mickaël Rémond on 18 May 2008

Facebook recently announced that their chat system is based on Erlang code running on a large cluster. It confirms that Erlang is a key tool for building large scale applications, especially for social networks.

Like ProcessOne has used Erlang to build its Instant Messaging suite of tools, Facebook is using Erlang to build its web based chat infrastructure.

The system uses a Comet based programming approach. From our knowledge the system uses Mochiweb as its web server to handle the massive number of long polling connections.

More details are available from Facebook engineering blog.



Categories: Jabber / XMPP  Erlang  

Comments

anonymous avatar

interesting…

why Mochiweb and not YAws ?

Posted by llathieyre on 18 May 2008 at 14:33



 
Mickaël Rémond's avatar

I think they might use Mochiweb because it is lighter. As it has less features it can be easier to tune it and customize it for their own needs.

Posted by Mickaël Rémond on 18 May 2008 at 14:36



 
anonymous avatar

mochiweb also because of the better support for long lived http connections that suit comet (push-pull), which has inspired projects like erlycomet ( that used dojo + mochiweb )

Keep Clicking,
~B

Posted by Bhasker V Kode on 19 May 2008 at 13:22



 
anonymous avatar

This is the first I’ve heard that they’re using mochiweb, but from the HTTP headers it looks like they are. They’ve definitely slightly modified the source though:

Server: MochiWeb/1.0 (I’m not even supposed to be here today.)

Posted by Bob Ippolito on 20 May 2008 at 15:15



 


Add comment

Name:

Email:

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?