Skip to content

A simple Spring Boot app that talks to Kafka using Avro and Schema Registry

License

Notifications You must be signed in to change notification settings

confluentinc/springboot-kafka-avro

 
 

Repository files navigation

Document Title

Spring Boot, spring-kafka and Confluent Schema Registry integration example

Local and CCloud

Deploy app to PAS

link:kafka.json[role=include]
filename
./mvnw clean install -DskipTests=true

cf create-user-provided-service cp -p kafka.json

cf push --no-start

cf bind-service spring-kafka-avro cp

cf start spring-kafka-avro

Test the app

test
curl -X POST -d 'name=vik&age=33' spring-kafka-avro-sleepy-dugong.apps.sanaa.cf-app.com/user/publish

kafka-avro-console-consumer --bootstrap-server kafka.supergloo.com:9092 --consumer.config kafka.properties --topic users --from-beginning --property schema.registry.url=http://schemaregistry.supergloo.com:8081

About

A simple Spring Boot app that talks to Kafka using Avro and Schema Registry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.8%
  • Shell 1.2%