commanded_horde_registry v0.4.0 Commanded.Registration.HordeRegistry

Process registration and distribution via Horde

In order to use this, you will need to update the following config values:

config :commanded,
  registry: Commanded.Registration.HordeRegistry,
  aggregate_supervisor_mfa:
    {Horde.Supervisor, :start_link,
     [[name: Commanded.Aggregates.Supervisor, strategy: :one_for_one]]}

You will also need to join the Supervisors together (connecting them via Distributed Erlang is not enough) via Horde.Cluster as documented. Starting a Commanded.Registration.HordeRegistry.Linker in your supervision tree will accomplish this, and has the added benefit of continually checking the cluster for new members and joining them.