Validating the Schema at the Edge of the Queue
A message's data is an untyped contract the queue won't check. Validate it at the edge: producer before publish, consumer as a safety net.
Tag
Schema in motion: evolving a message contract without breaking consumers, validating payloads at the edge of a queue and checking JSON Schema backward compatibility in the browser.
3 entries: Note, Essay, Tool.
A message's data is an untyped contract the queue won't check. Validate it at the edge: producer before publish, consumer as a safety net.
Diff two JSON Schemas: is the change backward-compatible, or a breaking one that needs a new message version? Runs in your browser.
You can't change a cross-service contract atomically. The rule: additive is safe, a breaking change needs a new identity — consumers upgrade first