This is a PoC of a distributed collab server that can auto-scale and distribute entity instances.
The following requirements need to be met to run the system:
- Erlang version
23-25 - Elixir version
1.14 - Rust version
1.65+
Start by installing dependencies
$ mix deps.getMake sure the following compiles (Rust crate)
$ RUSTLER_NIF_VERSION=2.16 mix compileWe can now start a cluster with two instances as follows:
Terminal 1:
$ RUSTLER_NIF_VERSION=2.16 iex --name [email protected] -S mix run --no-haltTerminal 2:
$ RUSTLER_NIF_VERSION=2.16 PORT=4001 iex --name [email protected] -S mix run --no-haltYou can now access the following two pages:
- http://127.0.0.1:4000/index.html?subscribe_to=abc,def
- http://127.0.0.1:4001/index.html?subscribe_to=def,xyz
to send patches. The patch is published when pressing (CTRL/CMD)+s. The boxes must contain valid JSON.