name: plan-a-schema-evolution-strategy
description: Plan a schema evolution strategy that supports compatible reads, writes, and deployments. Use when the user needs to change a shared schema without breaking existing clients or services.
domain: architecture-design
tags: [schema-evolution, compatibility, backfill]
triggers: ["schema evolution strategy", "change a shared database schema", "expand migrate contract plan"]
Plan a schema evolution strategy that supports compatible reads, writes, and deployments
Purpose
Plan a schema evolution strategy that supports compatible reads, writes, and deployments.
When to use
Use when the user needs to change a shared schema without breaking existing clients or services.
When NOT to use
Do not use this for a local implementation detail; use software-engineering instead.
Inputs required
- The functional and non-functional requirements
- The constraints on scale, budget and timeline
- The existing systems the design must fit
Procedure
- Classify each schema change as additive, incompatible, or a semantic alteration.
- Define the producer, consumer, and deployment compatibility windows for the change.
- Sequence expand, migrate, and contract phases with an explicit verification point between them.
- Specify backfill tooling, progress checks, restart behavior, and data validation.
- Define the rollback action for each phase and the point after which rollback is unsafe.
- Record assumptions about traffic, client versions, and temporary compatibility costs.
Output contract
A design with components, interfaces, data flows, failure modes and a migration path.
Validation checklist
Safety notes
Never present a design as final without stating the assumptions it depends on.
Related skills
plan-a-zero-downtime-schema-change
design-a-failover-strategy
plan-a-decomposition-of-a-god-service
1---2name: plan-a-schema-evolution-strategy3description: Plan a schema evolution strategy that supports compatible reads, writes, and deployments. Use when the user needs to change a shared schema without breaking exi4---5---6name: plan-a-schema-evolution-strategy7description: Plan a schema evolution strategy that supports compatible reads, writes, and deployments. Use when the user needs to change a shared schema without breaking existing clients or services.8domain: architecture-design9tags: [schema-evolution, compatibility, backfill]10triggers: ["schema evolution strategy", "change a shared database schema", "expand migrate contract plan"]11---1213# Plan a schema evolution strategy that supports compatible reads, writes, and deployments1415## Purpose1617Plan a schema evolution strategy that supports compatible reads, writes, and deployments.1819## When to use2021Use when the user needs to change a shared schema without breaking existing clients or services.2223## When NOT to use2425Do not use this for a local implementation detail; use software-engineering instead.2627## Inputs required2829- The functional and non-functional requirements30- The constraints on scale, budget and timeline31- The existing systems the design must fit3233## Procedure34351. Classify each schema change as additive, incompatible, or a semantic alteration.362. Define the producer, consumer, and deployment compatibility windows for the change.373. Sequence expand, migrate, and contract phases with an explicit verification point between them.384. Specify backfill tooling, progress checks, restart behavior, and data validation.395. Define the rollback action for each phase and the point after which rollback is unsafe.406. Record assumptions about traffic, client versions, and temporary compatibility costs.4142## Output contract4344A design with components, interfaces, data flows, failure modes and a migration path.4546## Validation checklist4748- [ ] Every requirement maps to a component49- [ ] Failure and rollback paths are described50- [ ] The trade-offs behind the choice are written down5152## Safety notes5354Never present a design as final without stating the assumptions it depends on.5556## Related skills5758- `plan-a-zero-downtime-schema-change`59- `design-a-failover-strategy`60- `plan-a-decomposition-of-a-god-service`