queue depth
The number of messages currently waiting in a queue.
In more detail
Depth alone cannot tell a fast deep queue from a slow shallow one; divide by drain rate to get the wait. Flat depth means consumers keep up; rising depth means they cannot.
Related terms
- oldest message age — How long the oldest unprocessed message has been waiting.
- drain rate — How many messages per second consumers remove from a queue.
- Little's law — A rule from queueing theory: average lead time equals average work in progress divided by average throughput.
Taught in
- Queues, Events And Asynchronous Work — Scalable System Design & Distributed Architecture
- The Difference Between A Queue And A Log — Scalable System Design & Distributed Architecture
- Load Balancing And The Failure Modes It Introduces — Scalable System Design & Distributed Architecture
- Backpressure And Load Shedding — Scalable System Design & Distributed Architecture
- Worked Design One: Scaling The Ticket Booking System — Scalable System Design & Distributed Architecture