Skip to content
Ameen Abozaid
Planned lessonMID-062-L06

Demo: changing OrderPlaced without breaking consumers

  • Lesson 6 of 6
  • Mid-level
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

replace total (cents, long) with money (amount, currency) safely. Prepares MID-062-LAB1.

Draft outline details

Step by step

  1. Show current Avro schema v1 and the registry set to BACKWARD_TRANSITIVE (or FULL).
  2. Add money with a default and keep total; register v2; the check passes.
  3. Deploy the producer to emit both fields; consumers on v1 keep working.
  4. Planned mistake: remove total in the same change; the registry rejects it (or a contract test fails). Fix: keep it for a release.
  5. Migrate consumers to money; watch usage of total fall to zero.
  6. Register v3 removing total after the deprecation window.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.