An open API service indexing awesome lists of open source software.

https://github.com/mgwidmann/hot_potato

Elixir implementation of hot potato across any number of nodes
https://github.com/mgwidmann/hot_potato

Last synced: 11 months ago
JSON representation

Elixir implementation of hot potato across any number of nodes

Awesome Lists containing this project

README

          

Hot Potato
==========

Run in three or more (minimum 2) terminals with different names:

$ iex --name w1@127.0.0.1 -S mix
$ iex --name w2@127.0.0.1 -S mix
$ iex --name w3@127.0.0.1 -S mix

In each terminal, import the module and connect to other nodes:

iex> import HotPotato.PotatoWorker; Node.connect :"w1@127.0.0.1"

In any terminal, tell the leader to start the hot potato!

iex> start

Be sure to replace `localhost` with the IP address or host name of the node in the cluster. Also, make sure to supply unique names within the entire cluster or the application will fail to start.