Last active
September 14, 2020 14:23
-
-
Save MazizEsa/312cc98f753423e0d8ddcd087989da3a to your computer and use it in GitHub Desktop.
Producer application.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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