Easy Concurrency Locking in Erlang/Elixir
Out of the box, Elixir and Erlang offer a very powerful tool for serializing access to a resource
via the GenServer included in OTP and surfaced in the Elixir standard library. As a GenServer
handles one callback at a time, it becomes a great tool for simulating a lock pattern from other
languages. If you wanted to serialize writes to a database, you could simply roll all of your
database interaction into a GenServer implementation and you're done! In the last few weeks
howev