Bird
Raised Fist0

You need to design an entry and exit flow for a high-traffic e-commerce system. Which approach best ensures scalability and reliability?

hard🧠 Conceptual Q8 of Q15
LLD - Design — Parking Lot System
You need to design an entry and exit flow for a high-traffic e-commerce system. Which approach best ensures scalability and reliability?
ADirect client calls to database for entry, synchronous responses for exit
BUse API Gateway for entry, asynchronous message queues for exit flow
CSingle server handles both entry and exit flows synchronously
DBypass entry flow and send requests directly to processing service
Step-by-Step Solution
Solution:
  1. Step 1: Identify scalable entry flow

    API Gateway efficiently manages incoming traffic and routing.
  2. Step 2: Choose reliable exit flow

    Asynchronous message queues decouple processing and response, improving reliability and scalability.
  3. Final Answer:

    Use API Gateway for entry, asynchronous message queues for exit flow -> Option B
  4. Quick Check:

    Scalable entry and exit = API Gateway + async queues [OK]
Quick Trick: Combine API Gateway and async queues for scale [OK]
Common Mistakes:
MISTAKES
  • Direct DB calls cause bottlenecks
  • Single server limits scalability
  • Skipping entry flow reduces control

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes