Damitha Dayananda
Damitha Dayananda

Reputation: 493

Use Kafka Streams with Avro Schema Registry

I'm seeking kafka-stream usage with schema-registry. I have google and could't find proper tutorial.

Upvotes: 2

Views: 5397

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191743

The documentation is here https://docs.confluent.io/current/streams/developer-guide/datatypes.html#avro

This is the dependency

<dependency>
    <groupId>io.confluent</groupId>
    <artifactId>kafka-streams-avro-serde</artifactId>
    <version>${confluent.version}</version>
</dependency>

Make sure you add the repository

    <repositories>
        <repository>
            <id>confluent</id>
            <url>https://packages.confluent.io/maven/</url>
        </repository>
    </repositories>

Lots of example code in here. Not all of it uses Avro
https://github.com/confluentinc/kafka-streams-examples/tree/5.2.1-post/src/test/java/io/confluent/examples/streams

Upvotes: 7

Related Questions