Branch by abstraction
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
change legacy internals safely behind an interface.
Planned topics
- Introduce an interface in the monolith in front of the capability.
- Implement the new behavior (calling the new service) behind the same interface.
- Switch with a flag; remove the old implementation when done.
- Keeps the main branch releasable throughout.
Draft outline details
Demonstration
outline: ShipmentTracker interface, LegacyShipmentTracker, RemoteShipmentTracker, a feature flag, and the removal step.
Check your understanding
What does the interface allow?
Show answer
Swapping implementations without long-lived branches.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.