Reliability
Apply backpressure before entering a skill queue
Bound pending work and protect users from stale jobs that begin too late.
Queuing can absorb a burst, but a long backlog can turn work into a liability. A queued action may execute after the user’s goal has changed or after the underlying facts have expired. Control both how much work enters the system and how long it remains eligible to start.
Set a clear admission rule
Compare the queue’s age and expected wait with each job class’s deadline. Place bulk work in a separate lane if it competes with interactive requests. Reject, defer, or acknowledge waiting according to the product contract, and tell the user what happened at admission.
Revalidate at dequeue time
Check the original request deadline, authorization, resource version, and approved action before execution when those properties can change. Record why an item expired or was withdrawn. A scheduler cannot infer that a user still wants an irreversible write from the fact that an old job exists.
Test the saturation boundary
Fill the queue in a controlled environment and verify which requests remain serviceable. Measure age as well as depth, because a small number of stalled jobs can create long waits. Ensure recovery does not replay expired items after a worker becomes healthy again.