concept custom behaviour in category erlang

appears as: custom behaviours, custom behaviour
Erlang and OTP in Action

This is an excerpt from Manning's book Erlang and OTP in Action.

A slight twist is in store: you’ll implement the RESTful interface by writing your own scaled-down web server! This will demonstrate a number of useful programming techniques, from advanced supervision strategies to the creation of custom behaviours and the use of the efficient built-in HTTP packet-parsing routines.

In the first part of this chapter, you’ll learn how to write an efficient concurrent TCP server application and implement a simple text-based interface to your cache. In the second part, you’ll get a quick-and-dirty introduction to the HTTP protocol and the REST concept, and learn how to create a custom behaviour, implement a basic web server, and build a RESTful interface to the cache on top of all this.