whitfin.io
About 01 Writing 02 Projects 03 Repositories 04
RSS Email LinkedIn

#erlang

1 entries
03 Mar 2019 6 min · 2,473 views

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

#elixir #erlang #projects
RSS Email LinkedIn
© 2026 Isaac Whitfield