Created
January 17, 2020 13:14
-
-
Save j-tim/19c53da678f109be3bf7f3b833a2a2e4 to your computer and use it in GitHub Desktop.
Spring Boot / Spring Kafka producer configuration for Confluent Cloud
This file contains hidden or 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: ${CLUSTER_BOOTSTRAP_SERVERS} | |
properties: | |
ssl.endpoint.identification.algorithm: https | |
sasl.mechanism: PLAIN | |
request.timeout.ms: 20000 | |
security.protocol: SASL_SSL | |
retry.backoff.ms: 500 | |
sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username='${CLUSTER_API_KEY}' password='${CLUSTER_API_SECRET}'; | |
# Schema Registry specific settings | |
schema.registry.url: ${SR_URL} | |
basic.auth.credentials.source: USER_INFO | |
schema.registry.basic.auth.user.info: ${SR_API_KEY}:${SR_API_SECRET} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment