Chapter 11. Adding an HTTP interface to the cache

This chapter covers

  • Writing efficient TCP servers in Erlang
  • Adding a simple text-based TCP interface to the cache
  • Creating your own OTP behaviours
  • Writing a basic web server
  • Adding a RESTful HTTP interface to the cache

In the previous chapters, you’ve implemented a nice cache application. The Erlware team plans to keep enhancing it over the coming months. One of the things they recognize about the Simple Cache application is that it has the potential to be useful for projects beyond Erlware. But currently an obstacle to wider adoption is that it only has an Erlang interface, which means it can only be directly used by other applications written in Erlang.

Production environments today often ...

Get Erlang and OTP in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.