QoS & Throughput Patterns
These patterns control how fast work executes, protect downstream services from overload, and make sure no single caller or tenant monopolizes Worker capacity at the expense of others.
Patterns in this section
Downstream Rate Limiting
Caps the Activity execution rate against a downstream service by routing throttled Activities to a dedicated Task Queue whose Workers enforce a throughput limit.
Priority Task Queues
Assigns a priority level to Workflows and Activities so time-sensitive work runs ahead of lower-priority work on the same Task Queue.
Fairness
Distributes Worker capacity evenly across tenants or users so a burst from one caller does not starve the others.
Choosing a pattern
A downstream dependency has a fixed rate limit: use Downstream Rate Limiting to cap throughput at the Worker.
Urgent work must not wait behind bulk work: use Priority Task Queues.
Multiple tenants share the same Workers: use Fairness to keep one tenant's burst from starving others.
Related sections
- Worker Configuration Patterns — the Task Queue and Worker setup these patterns route through
- Batch Processing Patterns — rate-control patterns for large record sets
- Error Handling & Retry Patterns — back off and retry when a rate limit is hit