Kafka events often outlive the applications that produced them.
An event published today might be consumed immediately, processed again tomorrow, or replayed months later to rebuild a database.
Meanwhile, applications continue to evolve. Developers add fields, remove outdated information, and introduce new business requirements.
This creates an important challenge: How do we change event schemas without breaking existing producers and consumers?
In a distributed system, we usually can't update every service simultaneously. Some consumers may still run older versions of the application while producers have already started publishing events using a newer schema.
Schema evolution allows these versions to coexist safely.
In this chapter, we'll explore how schema compatibility works, which changes are safe or breaking, and how to roll out schema updates in production.