thamurath
How to create a distributed and loadbalanced system?
I am new to Elixir and was wondering how to deploy a distributed and load balanced system.
I mean:
I have in mind a service based architecture, so to say, where each app offers a service the the system.
There could be any number of nodes, and each of them could execute any number of applications, at least one of them.
I have been reading about libcluster, and seems to be the way to achieve automatic node connection, but:
- How to discover wich apps is running the new connected node?
- How to balance the load between them?
I have read a little bit abouf erlang :pool but I do not figure how to use it…
Any tips or documentation links to read would be very much appreciated.
Most Liked
kokolegorille
You should also check Phoenix Pubsub, as standalone… It includes tools from now obsolete Firenest.
Also I am not sure it is a good idea to apply service based architecture concept to the BEAM, because it does not really work that way. Already one node is composed of multiple “micro services”, as any process could provide a service.
Rainer
Have you thought about using a message broker instead of doing everything by yourself?
For this kind of distributed system I’d use RabbitMQ (which is written in erlang)








