EDA.Gateway.ShardSupervisor (EDA v0.3.0)

Copy Markdown View Source

Top-level supervisor for the Gateway sharding system.

Manages:

  • Registry — shard_id → Connection pid mapping (always up-to-date)
  • DynamicSupervisor — supervises individual shard Connections
  • ShardManager — orchestrates shard lifecycle

Uses :rest_for_one strategy so that if the Registry crashes, the DynamicSupervisor and ShardManager are restarted too.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)