Created
November 25, 2020 08:41
-
-
Save martinhynar/c6ec4e29c79c78098952c0d5fd787890 to your computer and use it in GitHub Desktop.
micronaut-kafka-simple-producer-consumer
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
micronaut: | |
application: | |
name: micronaut-kafka-simple-producer-consumer | |
server: | |
port: 8081 | |
endpoints: | |
health: | |
sensitive: false | |
kafka: | |
schema: | |
registry: | |
url: http://localhost:8085 | |
bootstrap: | |
servers: | |
- localhost:9092 | |
producers: | |
producer-avro: | |
key: | |
serializer: org.apache.kafka.common.serialization.ByteArraySerializer | |
value: | |
serializer: io.confluent.kafka.serializers.KafkaAvroSerializer | |
producer-json: | |
key: | |
serializer: org.apache.kafka.common.serialization.ByteArraySerializer | |
value: | |
serializer: com.example.JsonMessageSerializer | |
consumers: | |
example-group-avro: | |
specific.avro.reader: true | |
key: | |
deserializer: org.apache.kafka.common.serialization.ByteArrayDeserializer | |
value: | |
deserializer: io.confluent.kafka.serializers.KafkaAvroDeserializer | |
example-group-json: | |
key: | |
deserializer: org.apache.kafka.common.serialization.ByteArrayDeserializer | |
value: | |
deserializer: com.example.JsonMessageDeserializer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment