Back pressure
A service accepts every request into an in-memory queue. At the evening peak, the queue reaches two million items, each request waits forty minutes, and then the process runs out of memory and loses all of them. When work arrives faster than you can do it, something has to give. Back pressure is deciding what, before the rush.
In this lesson you'll learn to
- Explain what happens when producers outpace consumers and buffers have no limit.
- Choose between buffering with a limit, shedding load and slowing the producer.
- Measure pressure with queue depth, the age of the oldest item and consumer lag, and act on them.
- Stop rejected work from coming back as a retry storm, with backoff, jitter and Retry-After.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.