Skip to content

Instantly share code, notes, and snippets.

@MazizEsa
Last active September 14, 2020 14:23
Show Gist options
  • Save MazizEsa/312cc98f753423e0d8ddcd087989da3a to your computer and use it in GitHub Desktop.
Save MazizEsa/312cc98f753423e0d8ddcd087989da3a to your computer and use it in GitHub Desktop.
Producer application.yaml
spring:
kafka:
bootstrap-servers: localhost:9092
properties:
schema.registry.url: http://localhost:8081
producer:
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: io.confluent.kafka.serializers.KafkaAvroSerializer
properties:
value.subject.name.strategy: io.confluent.kafka.serializers.subject.RecordNameStrategy # so that the name of the subject will be derived from record name ie, org.maziz.something
specific.avro.reader: true
use.latest.version: true # this is needed for schema reference to work
auto.register.schemas: false # this is needed for schema reference to work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment