3 ms·
> If code is kept organized, it can be split into microservices when/if the need arises. This is my favorite thing about the nature of Elixir actually because
by brightball 5y ago
> If code is kept organized, it can be split into microservices when/if the need arises.
This is my favorite thing about the nature of Elixir actually because it happens automatically.
With functional, no-side effects code you ensure that your logic is free from the entanglements that would otherwise complicate the separation. You take one function, you move it somewhere else and it works exactly the same.
The ability to cluster BEAM nodes allows you to call that function you just moved by just pointing to the node where it lives and then calling the function. And you'll get the response back just as if it lived in the same place it always did.