DEV Community

Discussion on: GitOps for Confluent Schema Registry

Collapse
 
ofirhasbani1 profile image
Ofir Hasbani

Hey Dominik Liebler, thank you very much. I find this application very useful.

I have an important question though - when and where do you handle "Code Generation"? meaning, how do you produce Java/Kotlin/Scala/etc classes that are correlated to User.avsc that will be used by the Consumers and the Producers?

Collapse
 
domnikl profile image
Dominik Liebler

Hi Ofir, thank you! Code generation is provided by the Avro tools itself. Me I use Gradle, so there is a plugin to generate Java classes from the schemas github.com/davidmc24/gradle-avro-p.... So the classes are built at compile time and I run schema-registry-gitops after that before deploying it but in the same CI/CD pipeline to ensure that invalid schema validations are being stopped before going into production (or even staging) systems.