Skip to content

Files

56 lines (42 loc) · 3.2 KB

how-to-integrate-confluent-kafka.md

File metadata and controls

56 lines (42 loc) · 3.2 KB
title description author ms.author ms.service ms.custom ms.topic ms.date
Integrate Apache kafka on Confluent Cloud with Service Connector
Integrate Apache kafka on Confluent Cloud into your application with Service Connector
shizn
xshi
service-connector
event-tier1-build-2022
how-to
05/03/2022

Integrate Apache kafka on Confluent Cloud with Service Connector

This page shows the supported authentication types and client types of Apache kafka on Confluent Cloud with Service using Service Connector. You might still be able to connect to Apache kafka on Confluent Cloud in other programming languages without using Service Connector. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection. You can learn more about Service Connector environment variable naming convention.

Supported compute service

  • Azure App Service
  • Azure Spring Cloud

Supported Authentication types and client types

Client Type System-assigned Managed Identity User-assigned Managed Identity Secret/ConnectionString Service Principal
.NET yes icon
Java yes icon
Java - Spring Boot yes icon
Node.js yes icon
Python yes icon

Default environment variable names or application properties

.NET, Java, Node.JS and Python

Default environment variable name Description Example value
AZURE_CONFLUENTCLOUDKAFKA_BOOTSTRAPSERVER Your Kafka bootstrap server pkc-{serverName}.eastus.azure.confluent.cloud:9092
AZURE_CONFLUENTCLOUDKAFKA_KAFKASASLCONFIG Your Kafka SASL configuration org.apache.kafka.common.security.plain.PlainLoginModule required username='{bootstrapServerKey}' password='{bootstrapServerSecret}';
AZURE_CONFLUENTCLOUDSCHEMAREGISTRY_URL Your Confluent registry URL https://psrc-{serverName}.westus2.azure.confluent.cloud
AZURE_CONFLUENTCLOUDSCHEMAREGISTRY_USERINFO Your Confluent registry user information {schemaRegistryKey} + ":" + {schemaRegistrySecret}

Spring Boot

Default environment variable name Description Example value
spring.kafka.properties.bootstrap.servers Your Kafka bootstrap server pkc-{serverName}.eastus.azure.confluent.cloud:9092
spring.kafka.properties.sasl.jaas.config Your Kafka SASL configuration org.apache.kafka.common.security.plain.PlainLoginModule required username='{bootstrapServerKey}' password='{bootstrapServerSecret}';
spring.kafka.properties.schema.registry.url Your Confluent registry URL https://psrc-{serverName}.westus2.azure.confluent.cloud
spring.kafka.properties.schema.registry.basic.auth.user.info Your Confluent registry user information {schemaRegistryKey} + ":" + {schemaRegistrySecret}

Next steps

Follow the tutorials listed below to learn more about Service Connector.

[!div class="nextstepaction"] Learn about Service Connector concepts