Video in progress
How does the release train model differ from continuous deployment in its effect on branch strategy?
In a release train, on set days a release branch is cut from main, stabilized and shipped on a schedule, so there are branches and backports. In continuous deployment, every green commit of main goes to prod, there is almost no release branch, and risk is managed with feature flags and progressive rollout.
📖 Answer
Release train (every two weeks, for example):
main ──●──●──●──●──●──●──►
└─ release/2026.45 ──●(fix)──► v2026.45.0
What got in before the cut day went out on the train, and what did not waits for the next one. During stabilization, fixes go to main first, then to the release by cherry-pick. It is natural for mobile apps, on-prem products, and places that need external sign-off. The cost: weeks between a change and prod, keeping the release branch alive, and the stress of "making the train".
Continuous deployment:
main→ an automatic pipeline → canary → everyone;- rollback means going back to the previous image or a new fix, not a release branch;
- unfinished work sits behind a flag, so a flag platform and its discipline are mandatory;
- DB changes are always backward compatible (expand/contract), because the old and new versions run together.
The choice is decided not by Git but by a few questions: how fast can we revert a change, how much do we trust the test automation, and is the version "delivered" to the customer or do we run it ourselves.
Many companies take a mixed path: backend services with CD, mobile and on-prem with a train. Then the APIs have to support old client versions for a long time, and that is an API versioning decision, not a branch strategy.
Sign up to mark studied questions and save your progress.