/global_cluster

A globally distributed Elixir application with a shared in-memory mnesia database that provides a visitor counter.

Primary LanguageElixir

Global Cluster

Counting visitors on a shared and distributed global datastore.

See it live at gc.nafn.de.

The demo has been taken down. Check out some archived links:

FAQ and changelog

People on reddit asked some questions. You can find everything in the FAQ

There is also a changelog if you're interested.

Local development

If you only need one node, start it via:

mix phx.server

If you need multiple nodes, start each of them in a terminal with a different port using the PORT environment variable (4000 by default):

iex --name a@127.0.0.1 -S mix phx.server
PORT=4001 iex --name b@127.0.0.1 -S mix phx.server

Afterwards libcluster should take care of forming a cluster and mnesiac should form a mnesia cluster.