Bird
0
0

In a microservices architecture, if Service A calls Service B, which then calls Service C, what is the correct exit flow for a response originating from Service C?

medium🧠 Conceptual Q5 of 15
LLD - Design — Parking Lot System
In a microservices architecture, if Service A calls Service B, which then calls Service C, what is the correct exit flow for a response originating from Service C?
AService A -> Service B -> Service C -> Client
BService B -> Service C -> Service A -> Client
CClient -> Service A -> Service B -> Service C
DService C -> Service B -> Service A -> Client
Step-by-Step Solution
Solution:
  1. Step 1: Understand call chain

    Service A calls B, B calls C, so request flows A -> B -> C.
  2. Step 2: Reverse for response flow

    Response flows back C -> B -> A -> Client.
  3. Final Answer:

    Service C -> Service B -> Service A -> Client -> Option D
  4. Quick Check:

    Exit flow reverses call chain [OK]
Quick Trick: Response flows back in reverse call order [OK]
Common Mistakes:
MISTAKES
  • Confusing call and response directions
  • Skipping intermediate services in response
  • Assuming client initiates exit flow

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes