talira

Scalable global process registry and process groups for Erlang and Elixir

open sourceMITfree

Syn is a global process registry and process group manager for Erlang and Elixir clusters, and a replacement for OTP's global registry and pg modules. It registers a process under any key across all nodes and keeps named groups of processes for publish/subscribe, trading global's strict consistency for eventual consistency and much higher registration throughput. Nodes can join and leave dynamically, it recovers from net splits, every process can carry metadata synchronised across the cluster, and cluster-wide callbacks fire on its main events. It's by Roberto Ostinelli.

Problems it solves

  • register a process by key across an Erlang cluster
  • broadcast messages to a group of processes on many Elixir nodes
  • replace OTP global when registrations are slow at scale

Features

  • global process registry with any term as key
  • global process groups for pub/sub
  • dynamic clusters and net-split recovery
  • metadata synchronised across the cluster
  • cluster-wide event callbacks

Alternatives

The same job

These do what Syn does.

  1. gproc Extended process registry and process dictionary for Erlang

Compare Syn with the top 3