Bird
0
0

How can an e-commerce system handle sudden traffic spikes during sales events without crashing?

hard📝 Trade-off Q8 of 15
LLD - Design — Online Shopping Cart
How can an e-commerce system handle sudden traffic spikes during sales events without crashing?
ARun all services on a single server
BUse auto-scaling infrastructure and load balancers to distribute traffic
CDisable checkout features temporarily
DLimit the number of users allowed to browse the site
Step-by-Step Solution
Solution:
  1. Step 1: Understand traffic spike challenges

    Sudden high traffic can overload servers causing crashes or slowdowns.
  2. Step 2: Apply scalable infrastructure

    Auto-scaling adds servers automatically, and load balancers spread traffic evenly to prevent overload.
  3. Final Answer:

    Use auto-scaling infrastructure and load balancers to distribute traffic -> Option B
  4. Quick Check:

    Auto-scaling + load balancing = handle spikes [OK]
Quick Trick: Auto-scale and load balance to handle spikes [OK]
Common Mistakes:
  • Limiting users reduces revenue
  • Disabling checkout frustrates customers
  • Single server cannot handle spikes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes