Pick the fix
You need amount as an object (value, currency) instead of a number in OrderPlaced. Safest path?
Hint 1 of 1
Can old consumers still read the event?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Add an optional amount_v2 object, keep amount, and migrate consumers before retiring the old field
Correct. Additive and reversible.
Consumers deploy on their own schedules, so a change must work with old and new readers at once. Add the new shape beside the old field, move consumers over, then remove the old one.
Why not the others?
- B Change
amountto an object in the next deploy. Every consumer parsing a number breaks. - C Remove
amountand addvalueandcurrency. Removing a used field is breaking. - D Tell consumers to update the same day. Coordinated big-bang deploys fail.