Created
February 1, 2022 13:11
-
-
Save mmafrar/01ca13e5e94fd402da06d553c69e7f9d to your computer and use it in GitHub Desktop.
Getting Started with Apache Kafka and Spring Boot
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: <BOOTSTRAP_SERVER_URL> | |
properties: | |
security: | |
protocol: SASL_SSL | |
sasl: | |
jaas: | |
config: org.apache.kafka.common.security.plain.PlainLoginModule required username='<CLUSTER_API_KEY>' password='<CLUSTER_API_SECRET>'; | |
mechanism: PLAIN | |
producer: | |
key-serializer: org.apache.kafka.common.serialization.StringSerializer | |
value-serializer: org.apache.kafka.common.serialization.StringSerializer | |
consumer: | |
group-id: group_id | |
auto-offset-reset: earliest | |
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer | |
value-deserializer: org.apache.kafka.common.serialization.StringDeserializer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment