Phoenix.Topic.Server
Handles Topic subscriptions and garbage collection with node failover
All Topic creates, joins, leaves, and destroys are funneled through master Topic Server to prevent race conditions on global :pg2 groups.
All nodes monitor master Topic.Server and compete for leader in the event of a nodedown.
Configuration
To set a custom garbage collection timer, add the following to your Mix config
config :phoenix, :topics,
garbage_collect_after_ms: 60_000..120_000
Summary
| leader_pid() |
| start_link(opts) |