Grepping Riak Core

Riak Core is an open source Erlang library (by Basho) that I want to use to make Doko distributed, scalable, and fault-tolerant.

I initially had some trouble understanding Riak Core. There are quite a few resources, but for a newbie such as myself it is not easy to know where to start, where to go next, et cetera. Here’s what worked for me:

Rate Limiting a gen_server

One of the applications I’m developing consumes a rate limited web service. I’m allowed a maximum of 10 requests per second. I came up with the gen_server based solution described below.

Huffman Coding in Erlang

Huffman coding is one of the earliest and best-know methods of text compression. It uses the same principle as Morse code: common symbols are coded in just a few bits, while rare ones have longer codewords.