Processes – The Bedrock of Concurrency and Fault Tolerance

Having learned how to create a new project in Elixir, we will now dive into one of the cornerstones of Elixir (inherited from Erlang): processes. Understanding how to work with them is paramount to creating concurrent and fault-tolerant applications in Elixir. Your typical application will easily contain hundreds, if not thousands, of processes running concurrently.

If this last sentence has raised some concerns over running thousands of processes in a single machine, note that we're referring to Erlang VM processes, which are much lighter than Operating System (OS) processes. Throughout this chapter, and the rest of the book, process refers to an Erlang VM processunless we directly ...

Get Mastering Elixir now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.