Your opinion matters! Please fill in the InfoQ Survey!

Erlang and Ruby Roundup: 37Signals, Erlectricity

| by Werner Schuster Follow 4 Followers on May 15, 2009. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

37Signals recently joined the group of companies using Erlang by porting the poller service of the Campfire chat system:

Last Friday we rolled out the Erlang based poller service into production. There are three virtual instances running a total of three Erlang processes. Since Friday, those 3 processes have returned more than 240 million HTTP responses to Campfire users, averaging 1200-1500 requests per second at peak times.

The Erlang code replaces a C based system:

It's safe to say the Erlang poller is pretty fast. It's also much easier to manage 3 Erlang processes than it was the 240 processes that our C poller required.

InfoQ reported previously about Erlang use in the Ruby space. EngineYard is one of the leaders in this area, with some of their tools and systems built in part with Erlang or on messaging systems written in Erlang.

A recent Erlang conference, Erlang Factory, saw talks by EngineYard's Ezra Zygmuntowicz and GitHub's Tom Preston-Werner (some videos of the talks are available online).

Tom Preston-Werner (InfoQ has a video interview with Tom on GitHub and Erlang), talked about Erlectricity, a library that allows to connect Erlang and Ruby (slides from Tom's talk(PDF)).
Erlang's way of connecting to other languages and system works via a network protocol, and Erlectricity takes care of both the Erlang and the Ruby side, ie. mapping Erlang types to Ruby types and vice versa. The slides also contain information about BERT and BERT-RPC, which appear to be more efficient binary encodings for sending Erlang terms across the wire.

Tom also recently released the source for egitd, an Erlang-based git daemon, which GitHub used (although it recently switched to a hacked version of the regular git daemon).

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread


Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you