Demo: writing a data contract for order events used by finance
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
write and agree a contract between the Orders team and Finance; prepares SRA-004-LAB1.
Draft outline details
Step by step
- Interview the producer and consumer: what Finance needs (revenue recognition, refunds, tax) and how fresh.
- Draft the schema and write semantics for each money field: gross, discount, tax, shipping, currency.
- Add quality rules (no missing currency, totals reconcile) and freshness and delivery guarantees.
- Agree versioning and a deprecation notice period; add automated checks in the producer pipeline.
- Planned mistake: publish only a schema and field names. Fix: add semantics and reconciliation rules after a test shows Finance and Orders compute revenue differently.
- Sign off: both teams record the contract and name owners.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.