Erlang in Practice Episode 6: Adding REST Support with MochiWeb

Posted in Development, Web Technologies on August 04, 2008


Erlang in Practice Episode 6: Adding REST Support with MochiWeb

It’s time to scale our chat system out to the web! In this episode, we’ll use the MochiWeb toolkit to make our chat system available to HTTP clients using REST conventions. You’ll learn how to:

  • download, build, and install Mochiweb
  • write a basic Erlang web server using MochiWeb
  • use Erlang’s experimental support for parameterized modules
  • add REST-style endpoints to the chat system developed in previous episodes
  • register, send messages, and poll for messages from HTTP clients
  • take advantage of Erlang’s excellent concurrency support and inexpensive processes to scale for the masses

Watch Video

Tags: Erlang, REST, Languages, RESTful, The Pragmatic Programmers, MochiWeb, Erlang in Practice