Bird
0
0

Consider this simplified request flow in a Strangler fig pattern:

medium📝 Analysis Q13 of 15
Microservices - Migration from Monolith
Consider this simplified request flow in a Strangler fig pattern:
Legacy system handles requests for features A, B, C.
New microservice replaces feature A.
Requests for A go to new service; B and C go to legacy.
What happens when a request for feature B arrives?
AIt is routed to the new microservice handling feature A
BIt is routed to the legacy system since B is not replaced yet
CIt causes an error because feature B is missing in new service
DIt is dropped and not processed
Step-by-Step Solution
Solution:
  1. Step 1: Analyze routing rules for features

    Only feature A is replaced by the new microservice; B and C remain in legacy.
  2. Step 2: Determine routing for feature B request

    Requests for B still go to legacy system as it is not replaced yet.
  3. Final Answer:

    It is routed to the legacy system since B is not replaced yet -> Option B
  4. Quick Check:

    Feature B not replaced = legacy route = C [OK]
Quick Trick: Unreplaced features stay on legacy system [OK]
Common Mistakes:
  • Routing all requests to new service regardless of feature
  • Assuming missing features cause errors
  • Dropping requests instead of routing properly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes