This videos explain about creating environments, cluster for Apache Kafka on Confluent Cloud platform. It also exhibits connecting to Kafka cluster created in Confluent Cloud, produce & consume events.
Like | Subscribe | Share
I have outlined Spring Kafka related properties used to connect Confluent Cloud platform in the video -
spring:
kafka:
bootstrap-servers: confluent-cloud-broker-url:9092
properties:
schema:
registry:
url: schema-registry-url
basic:
auth:
credentials:
source: USER_INFO
user:
info: SCHEMA_REGISTRY_API_KEY:SCHEMA_REGISTRY_SECRET
sasl:
jaas:
config: org.apache.kafka.common.security.plain.PlainLoginModule
required username="KAFKA_API_KEY" password="KAFKA_SCHEMA_REGISTRY";
mechanism: PLAIN
security:
protocol: SASL_SSL
ssl:
endpoint:
identification:
algorithm: https
consumer:
autoOffsetReset: earliest
group-id: spring-boot-avro-consumer-id
keyDeserializer: org.apache.kafka.common.serialization.StringDeserializer
properties:
specific:
avro:
reader: true
valueDeserializer: io.confluent.kafka.serializers.KafkaAvroDeserializer
producer:
keySerializer: org.apache.kafka.common.serialization.StringSerializer
valueSerializer: io.confluent.kafka.serializers.KafkaAvroSerializer
Ещё видео!