Bird
0
0

A company wants to migrate a monolithic e-commerce system using the Strangler fig pattern. They decide to migrate the payment module first as a microservice. Which approach best fits this pattern?

hard📝 Trade-off Q8 of 15
Microservices - Migration from Monolith
A company wants to migrate a monolithic e-commerce system using the Strangler fig pattern. They decide to migrate the payment module first as a microservice. Which approach best fits this pattern?
ALet clients choose between monolith and microservice manually
BCopy payment code into the microservice but keep all requests to the monolith
CShut down the monolith and start the microservice immediately
DRedirect payment requests to the new payment microservice while other requests go to the monolith
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct routing for migrated module

    Redirect payment requests to new microservice, others to legacy monolith.
  2. Step 2: Understand gradual migration benefit

    This allows safe migration without downtime or client confusion.
  3. Final Answer:

    Redirect payment requests to the new payment microservice while other requests go to the monolith -> Option D
  4. Quick Check:

    Module routing = A [OK]
Quick Trick: Route migrated module requests to new service [OK]
Common Mistakes:
  • Keeping all requests to monolith
  • Shutting down monolith immediately
  • Manual client choice

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes