reckon_db_notification_sup (reckon_db v2.2.0)

View Source

Notification 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

integrity_config/0

-type integrity_config() :: disabled | #{enabled := true, key_source := integrity_key_source()}.

integrity_key_source/0

-type integrity_key_source() :: {env_var, EnvName :: binary()} | {sealed_file, Path :: file:filename()}.

store_config/0

-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(),
                        integrity :: integrity_config()}.

Functions

start_link(Store_config)

-spec start_link(store_config()) -> {ok, pid()} | {error, term()}.

Start the notification supervisor