Glossary
The words used in a Gen 2 project
Short definitions, each with the page that covers it properly.

- Gen 1
- The system you run today, usually the one that earns the money. Killing Gen 1
- Gen 2
- The system meant to replace Gen 1: a rewrite, a replacement product or a re-platformed version. Rewrite vs refactor
- Anti-corruption layer
- A boundary that translates between two systems so the new one does not inherit the old one's data model. The anti-corruption layer
- API versioning
- Offering old and new forms of an API side by side, with a date for retiring the old one. Versioning an API
- Backfill
- Copying the records that existed before dual writing began into the new store. Dual write
- Big bang cutover
- Switching everyone from Gen 1 to Gen 2 at once. Big bang cutover
- Branch by abstraction
- Putting an abstraction in front of a part of the code, building the new part behind it, then switching. Branch by abstraction
- Canary release
- Sending a small share of users to the new version first and rerouting them back if it misbehaves. Feature flags and dark launches
- Characterization test
- A test that records what the existing code actually does, so a change or replacement can be compared with it. Also called a golden master test. Characterization tests
- Cutover
- The moment the new system takes over from the old one. Cutover
- Dark launch
- Running new back-end behavior with real requests while users see no change. Feature flags and dark launches
- Dual write
- Writing every change to both the old and the new data store while a migration is under way. Dual write
- Expand and contract
- Changing an interface in three steps: add the new form, move every user to it, then remove the old one. Also called parallel change. Expand and contract
- Feature flag
- A setting that changes which code runs without deploying new code. Feature flags and dark launches
- Parallel run
- Running the old and new systems on the same input and comparing their results before trusting the new one. Parallel run
- Rollback
- Returning to the previous version after a switch goes wrong. It needs the old system and its data to still be usable. Cutover
- Second-system effect
- The tendency of the successor to a small, successful system to arrive overbuilt and late. The second-system effect
- Shadow traffic
- A copy of live requests sent to the new system, whose answers are compared and thrown away. Shadow traffic
- Strangler fig
- Replacing a system one slice at a time behind a router while it keeps running. Strangler fig
