Day 3: Distribution
Everything weâve done so far has been on a single computer, but one of the actor modelâs primary benefits compared to the models weâve seen so far is that it supports distributionâsending a message to an actor on another machine is just as easy as sending it to one running locally.
Before talking about distribution, however, weâll take a quick look at one of the most powerful reasons for using Elixirâthe OTP library.
OTP
Over the previous two days, we built everything by hand in ârawâ Elixir. This is a great way to understand whatâs going on under the hood, but it would be both tedious and error prone if we had to write every worker and every supervisor from scratch every time. You wonât be surprised ...
Get Seven Concurrency Models in Seven Weeks 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.