Skip to content

PoC: how to use AVRO schemas on client side + kafka schema plugin

Notifications You must be signed in to change notification settings

zhenik/confluent-shema-plugin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka schema plugin example

Approaches how to use schema-registry plugin

Approach 1

Schema module

  • Check schema compatibility
  • Register schema in schema-registry
./mvnw -pl schema schema-registry:test-compatibility 
./mvnw -pl schema schema-registry:register 

Client1 module

  • Download schema
  • Generate pojos with this schema
./mvnw -pl client1 schema-registry:download
./mvnw -pl client1 avro:schema

Approach 2

Schema module

  • Generate pojos with schema
./mvnw -pl schema avro:schema

Client2 module

  • Dependency to schema module
  <dependencies>
    <dependency>
      <groupId>ru.zhenik.example</groupId>
      <artifactId>schema</artifactId>
    </dependency>
  </dependency>

Recommended flow by confluent

with Approach 1

img

References

About

PoC: how to use AVRO schemas on client side + kafka schema plugin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages