Pattern 85 / MIGRATE

Branch by Abstraction

Use this when Changing implementations without long-lived feature branches.

Pressure
Changing implementations without long-lived feature branches
Mechanism
Hide old and new implementations behind an abstraction and switch callers gradually
Toll
The abstraction can leak or become permanent if not retired
Architecture plate85
Diagram for Branch by Abstraction
Executive brief

Branch by Abstraction fits when Changing implementations without long-lived feature branches. Mechanism: Hide old and new implementations behind an abstraction and switch callers gradually. Use it for Database swaps, service extraction, library replacement. The toll: The abstraction can leak or become permanent if not retired.

Use when

Database swaps, service extraction, library replacement.

Example

Use branch by abstraction when database swaps, service extraction, library replacement..

Review framing

Describe the pressure first, then the mechanism, then the cost. That keeps the design grounded.

Same pressure family

Migration

84Strangler Fig86Parallel Run
โ† 8486 โ†’