Skip to content

Latest commit

 

History

History

distributed_collab

DistributedCollab

This is a PoC of a distributed collab server that can auto-scale and distribute entity instances.

Setup

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.get

Make sure the following compiles (Rust crate)

$ RUSTLER_NIF_VERSION=2.16 mix compile

We 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-halt

Terminal 2:

$ RUSTLER_NIF_VERSION=2.16 PORT=4001 iex --name [email protected] -S mix run --no-halt

You can now access the following two pages:

to send patches. The patch is published when pressing (CTRL/CMD)+s. The boxes must contain valid JSON.