Collection of examples and ideas for managing Schema and Subjects within the Confluent Schema Registry
In this example we will show how to:
- Manage your schemas centrally.
- Automate registration of those schemas against Subject.
- Package & distribute a Jar dependency containing POJO builds of your schemas.
This examples makes use of 2 Maven Plugins:
- avro-maven-plugin - Apache Avro Maven Plugin to compile Avro (.avsc) files into POJOs. For use within your codebase.
- kafka-schema-registry-maven-plugin - Confluent Schema Registry Plugin used to register and update your schema definitions against a Schema Registry instance.
Register Schemas Without Doing a Full Deploy
$> cd schema-registry-examples-register
$> mvn io.confluent:kafka-schema-registry-maven-plugin:register
In this example we will show how to:
- Download schema definitions from the Confluent Schema Registry.
- Compile those schema definitions into POJOs for use within our codebase.
This examples makes use of 2 Maven Plugins:
- avro-maven-plugin - Apache Avro Maven Plugin to compile Avro (.avsc) files into POJOs. For use within your codebase.
- kafka-schema-registry-maven-plugin - Confluent Schema Registry Plugin used to download your schema definitions from a Schema Registry instance.