Push vs pull consumers
On Black Friday, the broker pushes 5,000 messages a second at a consumer that can handle 500. It runs out of memory, restarts, and is pushed 5,000 a second again. Whether the broker pushes or the consumer pulls decides who sets the pace.
In this lesson you'll learn to
- Describe push delivery and pull delivery, with real examples of each.
- Compare push and pull on latency, control of the pace, batching and catching up after a backlog.
- Explain long polling and why it's the usual way to pull without wasting requests.
- Use prefetch limits and flow control to make push safe for slow consumers.
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.