Apache Kafka® describes its wire format using message schemas in a custom JSON format. At compile time a code generator generates Java source for classes to represent the protocol messages, with methods to read/write to binary.
This project provides a similar code generation facility:
- The schema model is mostly the same.
- The generated code is defined in Apache FreeMarker™ templates, allowing you to generate any kind of code (your choice of language) from the messages schemas.
- The code generation is packaged as a maven plugin for integration into your build process.