Advanced System Design Fundamentals
0% completed
Backpressure and Consumer Lag
During a sale, orders reach an online store at 800 a second. The warehouse service, which reads these orders from Kafka, can process 600 a second. Every second, therefore, 200 orders are left over. After one minute, 12,000 orders are waiting, and after two and a half minutes, 30,000.
No server has failed, and no order has been lost. The extra orders wait in Kafka, on disk, in a backlog that grows by 200 every second. That backlog is the subject of this lesson. The lesson covers how far the consumers can grow, what the backlog's size does and does not tell you, and when the backlog loses data
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%