Build custom protocols with Ranch and msgpack

By Erlang Central | Published: February 19, 2013

Developers are often required to make different components of a system communicate. HTTP is a common protocol to bind two different parts of a system, but HTTP is slow and difficult to use. Sometimes you just need to send a few values at a time and don’t need the overhead of HTTP.
The msgpack serialization library can be used to build one such custom protocol. It is available on pretty much any platform you can think of, is small and efficient, and most importantly it allows you to build very readable protocol code.
This talk will explain how to build a simple custom protocol with Ranch and msgpack and will demonstrate the simplicity of connecting two different systems.
Talk objectives: Learn how to build custom protocols based on Ranch and msgpack.


  • Loïc Hoguin

    Erlang Cowboy and Nine Nines Founder
    Nine Nines

    Founder of the Nine Nines open source Erlang company. Main author of the Cowboy, Bullet, Sheriff and Farwest projects. Spawnfest co-founder and organizer.

    Twitter: @lhoguin

    Loïc Hoguin

Follow Erlang Central:

Have an Erlang Question?

Reach out to the Erlang community