AI Hints
Home›System Design Tutorial›Batch, Stream and Schedules
System Design · Lesson 75 of 120

Messaging Quiz

Test yourself.

⏱ 2 min read▶ Video at 1:30:00🎓 Free
Watch this lesson in the System Design courseWatch on YouTube ↗Full System Design course

Let's review asynchronous work and messaging. Pause after each question, and answer before I do.

Messaging Quiz
From the video: Messaging Quiz
  • Messaging quiz
  • Pause and think
  • Then check

Question 1

Each order event must reach email, warehouse, and analytics. Queue, or pub sub? Pub sub.

Quick check
One event, three services:

Question 2

Most systems choose which delivery guarantee? At least once, with idempotent consumers.

Quick check
The usual choice:

Question 3

A message fails every time it's processed. Where should it go? A dead letter queue.

Quick check
Always fails:

Question 4

The queue keeps growing during a sale. What does that tell you? Consumers are slower than producers. That's backpressure.

Quick check
A growing queue means...

Summary

Well done. Next, a new section on architecture and reliability, starting with monoliths and microservices.

Key takeaways
  • Pub/sub
  • At least once
  • Dead letters, backpressure
Next up: Monolith vs Microservices — one or many