Bird
0
0

You plan to migrate a monolith to microservices incrementally. Which approach best ensures minimal downtime and rollback capability?

hard📝 Trade-off Q15 of 15
Microservices - Migration from Monolith
You plan to migrate a monolith to microservices incrementally. Which approach best ensures minimal downtime and rollback capability?
ADeploy new microservices behind a feature flag and route a small % of traffic gradually
BReplace the monolith entirely in one deployment window
CMigrate database schema all at once without backward compatibility
DDisable old services immediately after deploying new ones
Step-by-Step Solution
Solution:
  1. Step 1: Evaluate migration strategies

    Deploying behind feature flags and routing small traffic allows gradual testing and rollback.
  2. Step 2: Compare risks of other options

    Replacing all at once or disabling old services causes downtime; schema changes without compatibility break systems.
  3. Final Answer:

    Deploy new microservices behind a feature flag and route a small % of traffic gradually -> Option A
  4. Quick Check:

    Feature flags + gradual traffic = safe migration [OK]
Quick Trick: Use feature flags and gradual traffic shift for safety [OK]
Common Mistakes:
  • Trying big-bang replacement causing downtime
  • Ignoring backward compatibility in database changes
  • Disabling old services too early

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes