Kafka schema registry
· 7 min read
Sample code
Problems
- When the message specification changes, DTO updates are required for each dependent module or Git Repository.
- Backward or forward compatibility is often broken.
- The complexity of DTO management increases linearly.
- Java has many inconveniences, especially when dealing with JSON-based messages.
- Kafka transmits messages in
ByteArray
format, but it is recommended to deserialize and manage them at the application level.- The process of serializing data into
ByteArray
every time it is put into a payload, and the reverse process, occurs every time. - Increased code complexity.
- ByteArray - JSON - Object
- The process of serializing data into