Skip to content

Instantly share code, notes, and snippets.

@mmafrar
Created February 1, 2022 13:11
Show Gist options
  • Save mmafrar/01ca13e5e94fd402da06d553c69e7f9d to your computer and use it in GitHub Desktop.
Save mmafrar/01ca13e5e94fd402da06d553c69e7f9d to your computer and use it in GitHub Desktop.
Getting Started with Apache Kafka and Spring Boot
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