's Picture

Richard Jones

Logbook / blog / devlog

  • Home
  • About
  • Contact Me
  • Search

c

A collection of 4 posts

October 21, 2009

Rewriting Playdar: C++ to Erlang, massive savings

I've heard many anecdotes and claims about how many lines of code are saved when you write in Erlang instead of [C++/other language]. I'm happy to report that I now have first-hand experience and some data to share.

programming erlang c playdar rewrite

November 4, 2008

A Million-user Comet Application with Mochiweb, Part 3

In Part 1 and Part 2 of this series we built a comet application using mochiweb, and learned how to route messages to connected users. We managed to squeeze application memory down to 8KB per connection. We did ye olde...

programming erlang c comet mochiweb libevent cnode

September 28, 2008

Erlang libketama driver - Consistent Hashing

All the data I need from memcached is assigned to servers using a consistent hashing mechanism, implemented as libketama - a shared library written in C. We use a php extension to wrap this, and also have a pure java...

programming erlang c memcached driver hashing ketama

April 10, 2007

libketama: Consistent Hashing library for memcached clients

We wrote ketama to replace how our memcached clients mapped keys to servers. Previously, clients mapped keys->servers like this:

programming hashing caching c php memcached scalability lastfm

Copyright Metabrew.com - Richard Jones © 2024.
I release all embedded source code in my blog articles to the public domain, unless otherwise specified. Article text released under the Creative Commons Attribution-NonCommercial 4.0 International License. You don't need to ask me if you want to post a translated version of my work on your own website, but you must link back here as per the above license.

Back to top