Storage Layer

In today’s post, we’ll explore what the persistence layer for our comment system will look like. I have decided that I want to build this whole thing out in Scala, using the Akka Actor framework (version 2.2).

The persistence layer will consist of a pluggable storage backend, workers to read and write to that backend, and a supervisor to manage them. In front of that, we’ll have another supervisor managing a pool of actors that serve up requests for storage contents. This front end layer will be responsible for serializing the data into the requested format, or performing transactions where necessary.

For the visually oriented:

In the next comment system post, we set up a skeleton Akka project and begin work on the persistence layer!