reckon_db_notification_sup (reckon_db v1.6.0)
View SourceNotification supervisor for reckon-db
Manages notification-related components using rest_for_one strategy: - LeaderSystem (leader responsibilities, tracking) - EmitterSystem (event distribution workers) - SubscriptionHealthMonitor (periodic health checks)
rest_for_one ensures that if LeaderSystem crashes, EmitterSystem and HealthMonitor are also restarted, preventing stale emitter pools from outliving their leader tracking infrastructure.
Summary
Functions
Start the notification supervisor
Types
-type store_config() :: #store_config{store_id :: atom(), data_dir :: string(), mode :: single | cluster, timeout :: pos_integer(), writer_pool_size :: pos_integer(), reader_pool_size :: pos_integer(), gateway_pool_size :: pos_integer(), options :: map()}.
Functions
-spec start_link(store_config()) -> {ok, pid()} | {error, term()}.
Start the notification supervisor