Example Web app with dynamic node discovery

I am trying to explore the possibilities for elixir deployment to cloud environments.

The application has one page that shows a list of all nodes know about. When a node comes up or down the updated list of nodes is set to the browser using server sent events.

  • Version 0.1.0 worked when all the erlang sessions were started on one node.
  • Version 0.2.0 uses several nodes started by vagrant, but the nodes had to have a static ip and where discovered using a sys.config
  • Master Uses UDP broadcast to discover all the nodes.

A lot of the networking stuff is new to me. If anyone had the time to give any feedback on the project/approach I would be really grateful.


Looks like the usual style of growing such a system, same pattern I’ve used in the past in Erlang. :slight_smile:

1 Like