Learn Labs
Messaging

Self-test

Check your understanding

Self-test10 questions

—/10
  1. What delivery guarantee does Pub/Sub give, and in which three situations is a message lost?

  2. Why does Redis disconnect slow Pub/Sub subscribers, and what's the consequence?

  3. Why use sharded Pub/Sub in a cluster?

  4. What's the difference between XREAD and XREADGROUP?

  5. Explain the Pending Entries List. How does a crashed consumer's work get finished?

  6. Why must stream consumers be idempotent?

  7. What's a poison message, and how do you handle it with streams?

  8. Why do streams need trimming, and what does ~ do? What can trimming do to a slow consumer group?

  9. When would you choose Redis Streams over Kafka, and Kafka over Redis Streams?

  10. 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.