API Reference dispenser v0.1.0

Modules

A AssignmentStrategy is strategy to handle assigning events to subscribers to meet their demands.

The Even AssignmentStrategy assigns events to as many subscribers as possible, up to their demand. Once a subscribers has its demand satisfied, it is removed from the assignment rounds and the remaining events are assigned to the remaining subscribers. This assignment cycle continues until either all demand is satisfied or all events have been assigned.

A Dispenser.Buffer is a buffer that manages incoming events and demand for those events.

Tracks the demands of subscribers.

A MonitoredBuffer contains most of the logic required to implement a GenServer that wraps a Buffer. MonitoredBuffer combines a Buffer to track events and a SubscriptionManager to track subscribers.

A BatchingBufferServer is an example GenServer that uses Dispenser.Buffer. It can receive events and send them to subscriber processes.

A BufferServer is an example GenServer that uses Dispenser.Buffer. It can receive events and send them to subscriber processes.

SubscriptionManager handles monitoring and demonitoring subscribers