⚠️ This post links to an external website. ⚠️
An Elixir program consist of a large number of lightweight, concurrent processes communicating with each other via asynchronous messages. A process receives and handles incoming messages, transforming its internal state in a functional way. Inside a process, all code is sequential. The VM running Elixir, BEAM, normally utilizes all cores of a modern CPU and schedules processes for execution. By running many concurrent processes you can maximize the performance of current hardware.
What if we want to use more than one machine? Distributed Elixir refers to the capability of Elixir applications to run across multiple nodes within a cluster, allowing for improved scalability and fault tolerance. This is a complex subject, but we can explore the basics without installing any dependencies.
continue reading on blog.stfx.eu
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.