Long-lived Processes in Elixir
Something that never ceases to amaze me about Elixir is that tail call optimization is the trick to having long-lived processes.
In other languages, we’d get a stack overflow.
In Elixir, we get a process that can hold state and send/receive messages.🤩
👉 short video exploring that https://youtu.be/bezaBt5pi7E 👀
Read next Using :dets for Persistent Caching and Avoiding Data Loss