Bird
Raised Fist0

Which design choice best ensures scalability and reliability?A.

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

You are designing a notification system to alert all parties involved in a project. Which design choice best ensures scalability and reliability?

  • A. Use a single server to send notifications sequentially to all parties.
  • B. Send notifications only to a random subset of parties to reduce load.
  • C. Store all notifications in a database and send them manually when needed.
  • D. Use a message queue to distribute notification tasks to multiple worker servers.
ASingle server sending sequentially
BMessage queue with multiple workers
CStore notifications and send manually
DSend to random subset to reduce load
Step-by-Step Solution
Solution:
  1. Step 1: Evaluate single server approach

    Sending sequentially from one server limits scalability and can cause delays or failures.
  2. Step 2: Consider message queue with workers

    Using a message queue allows distributing notification tasks to multiple workers, improving scalability and reliability.
  3. Step 3: Assess other options

    Storing notifications for manual sending is slow; sending to random subset misses parties.
  4. Final Answer:

    Message queue with multiple workers -> Option B
  5. Quick Check:

    Queue + workers = scalable, reliable notifications [OK]
Quick Trick: Use queues and workers for scalable notifications [OK]
Common Mistakes:
MISTAKES
  • Relying on single server for all notifications
  • Sending notifications manually
  • Skipping parties to reduce load

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes