API & Contract Evolution
Evolve service APIs and event schemas without breaking consumers, using compatibility rules, contract tests and managed deprecation.
3 objectives 6 steps about 120 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Classify API and schema changes as backward-compatible, forward-compatible or breaking for JSON, Protobuf and Avro payloads.
- Ship a breaking change without coordinated deployments using expand-and-contract, versioning and a published deprecation and sunset schedule.
- Set up consumer-driven contract tests and schema-compatibility checks that run in CI.
Lesson plan
6 steps, about 120 min · 0 of 5 lessons available so far
- Compatibility rules for JSON, Protobuf and Avro Concept · 20 min · coming later
- Tolerant readers and what they cost Concept · 15 min · coming later
- Expand, migrate, contract: renaming a field in production Worked example · 25 min · coming later
- Consumer-driven contracts and schema checks in CI Lab · 30 min · coming later
- Versioning, deprecation and sunset policies Concept · 15 min · coming later
- Contract change check Knowledge check · 6 questions
Practise it
Between two services you control, add a consumer-driven contract test and a schema-compatibility check to CI, then ship a field rename through expand-and-contract with no failed contract run and no consumer redeploy forced.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.