Self-test
Check your understanding
Self-test10 questions
What delivery guarantee does Pub/Sub give, and in which three situations is a message lost?
Why does Redis disconnect slow Pub/Sub subscribers, and what's the consequence?
Why use sharded Pub/Sub in a cluster?
What's the difference between
XREADandXREADGROUP?Explain the Pending Entries List. How does a crashed consumer's work get finished?
Why must stream consumers be idempotent?
What's a poison message, and how do you handle it with streams?
Why do streams need trimming, and what does
~do? What can trimming do to a slow consumer group?When would you choose Redis Streams over Kafka, and Kafka over Redis Streams?
- Design question
Design an order-processing pipeline where billing, email, and analytics each consume every order, with retries, a dead-letter stream, and lag alerts.