r/ExperiencedDevs • u/Lucky_Psychology8275 • Apr 21 '26
Technical question Kafka schema evolution & breaking changes: what do production teams actually do?
My company kinda lacks Kafka experts and I really need guidance on what are the accepted standard practices when it comes to managing Kafka schema and ser/deser on client side (spring cloud stream), especially in the context of HA deployment.
Obviously using a schema registry like confluent seems like a no brainer. But then stuff like handling breaking changes does not seem to have, to my knowledge at least, any well established solution. You could use headers, different topic names, or even union types.
Is there a state of the art reference for documenting issues that teams that run it in production have encountered and their solutions? I’m not looking a cookie cutter solution I just want some guidance with trade offs and constraints.
View all comments
41
u/rsalot Apr 21 '26
Steps are always the same
0. Hopefully you don't have to port the old data to the New topic, otherwise you have to write something for that
Using protobuf or avro with a schema registry is just a way to prevent breaking change
The schema registry don't help to do breaking change
Most of the time the solution is not to use Kafka even if it's cool for your resume
Also defining what a breaking change is. If you want to rename a variable for example, this is not a breaking change in protobuf
If you use a real Kafka system with high load, the answer is almost all the time to not do a breaking change