Bird
0
0

A system uses caching with a TTL (time to live) of 10 minutes and load balancing across 4 servers. If traffic doubles suddenly, what is the best way to maintain performance?

hard📝 Trade-off Q9 of 15
LLD - Advanced LLD Concepts
A system uses caching with a TTL (time to live) of 10 minutes and load balancing across 4 servers. If traffic doubles suddenly, what is the best way to maintain performance?
AIncrease cache size and add more servers behind the load balancer
BReduce cache TTL to 1 minute and remove servers
CDisable caching and use a single server
DIgnore traffic increase and keep system unchanged
Step-by-Step Solution
Solution:
  1. Step 1: Address increased traffic

    Doubling traffic means more requests to handle, risking overload.
  2. Step 2: Use caching and scaling

    Increasing cache size helps serve more requests quickly; adding servers spreads load.
  3. Step 3: Avoid reducing cache TTL or removing servers

    Reducing TTL increases DB load; fewer servers cause bottlenecks.
  4. Final Answer:

    Increase cache size and add more servers behind the load balancer -> Option A
  5. Quick Check:

    Scale cache and servers to handle traffic [OK]
Quick Trick: Scale cache and servers to handle more users [OK]
Common Mistakes:
  • Reducing cache TTL unnecessarily
  • Removing servers during high load
  • Ignoring traffic increase

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes