June 2022
Intermediate to advanced
130 pages
2h 45m
English
A common way to use Elixir processes is within a message loop. Let’s build a quick key-value store, a process that can be shared across processes.
Our general strategy is to divide our application into three parts: the Core, the Server, and the API. Let’s talk about each piece in turn.
The Core will have the simple functions we need to process individual requests. These functions will be reducers. They’ll take a key-value store and return a transformed store.
The Boundary will wrap the Core layer. It’ll manage the process machinery that starts processes, receives messages, and returns responses. We can’t completely remove the complexity in the Boundary. The best we can do is to hide the complexity of the ...
Read now
Unlock full access