Problem Statement
Which is a safe practice for event schema evolution?
Explanation
Add fields with defaults and avoid changing meaning. Consumers should ignore unknown fields. For breaking changes, publish a new version key or topic and migrate gradually.
A schema registry helps coordinate producers and consumers.
Code Solution
SolutionRead Only
event { v:2, orderId, total, currency? }Practice Sets
This question appears in the following practice sets:
