Skip to main content

Module backpressure_enqueue

Module backpressure_enqueue 

Source
Expand description

Backpressure-aware enqueuer (in-memory backend).

BackpressureEnforcer tracks un-acked jobs per topic and caps how many may be outstanding at once, returning BackpressureError instead of blocking when the cap is exceeded.

Structs§

BackpressureEnforcer
Caps how many un-acked jobs a topic may have outstanding.

Enums§

BackpressureError
Errors returned by BackpressureEnforcer.

Functions§

enqueue_with_backpressure
Enqueues every payload, counting the ones rejected for lack of room.