Bird
Raised Fist0

You need to design a notification system that sends alerts to all parties and retries failed deliveries up to 3 times. Which design approach is best?

hard📝 Trade-off Q8 of Q15
LLD - Design — Food Delivery System

You need to design a notification system that sends alerts to all parties and retries failed deliveries up to 3 times. Which design approach is best?

AStore notifications in a database only without sending
BSend notifications synchronously without retries
CUse a message queue with retry logic and dead-letter queue for failures
DSend notifications once and ignore failures
Step-by-Step Solution
Solution:
  1. Step 1: Understand retry requirements

    Retries require tracking delivery attempts and handling failures gracefully.
  2. Step 2: Choose a design that supports retries and failure handling

    A message queue with retry logic and a dead-letter queue allows retries and isolates failed messages.
  3. Final Answer:

    Use a message queue with retry logic and dead-letter queue for failures -> Option C
  4. Quick Check:

    Retries need queues and failure handling [OK]
Quick Trick: Use queues with retry and dead-letter for reliability [OK]
Common Mistakes:
MISTAKES
  • Ignoring retries
  • Synchronous sends only
  • No failure handling

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes