Bird
0
0

You are designing an event-driven system that must handle millions of events per second. Which approach best improves scalability?

hard📝 Trade-off Q8 of 15
LLD - Advanced LLD Concepts
You are designing an event-driven system that must handle millions of events per second. Which approach best improves scalability?
AUse multiple event queues with dedicated consumers
BUse a single queue with one consumer thread
CProcess events synchronously in the main thread
DStore all events in a database before processing
Step-by-Step Solution
Solution:
  1. Step 1: Understand scalability needs

    Millions of events require parallel processing to avoid bottlenecks.
  2. Step 2: Evaluate approaches

    Multiple queues with dedicated consumers allow concurrent processing and better throughput.
  3. Final Answer:

    Use multiple event queues with dedicated consumers -> Option A
  4. Quick Check:

    Parallel queues = better scalability [OK]
Quick Trick: Parallel queues and consumers boost throughput [OK]
Common Mistakes:
  • Using single queue limits throughput
  • Synchronous processing blocks system
  • Database storage adds latency

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes