ExESDB.PersistentEmitterWorker (ex_esdb v0.0.10-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

acknowledge_event(subscription_name, event)

catch_up(subscription_name)

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(arg)

via_swarm(subscription_name)