ExESDB.PersistentEmitterWorker (ex_esdb v0.0.11-alpha)
As part of the ExESDB.System, the PersistendEmitter is responsible for maintaining the streanm of events as defined by a Persistent Subscription. It works as follows:
When a Leader is elected, The SubscriptionsTracker will
start a PersistentEmitterPool for each persistent subscription.
The resulting PersistentEmitterWorkers will then be responsible for:
- catching up with the event stream, from the last acknowledged event
- forwarding events to the subscriber
- registering acknowledgements
where the subscription_name defers from
Summary
Functions
Returns a specification to start this module under a supervisor.