This directory includes examples of Kafka client applications, showcasing producers and consumers, written in various programming languages. The README for each language walks through the necessary steps to run each example. Each client example takes as an argument a properties file with the configuration parameters that specify connection information for any of the following:
- Kafka cluster running on your local host (Download Confluent Platform)
- Any other remote Kafka cluster
Click on any language in the table below:
Confluent CLI |
The following subset includes examples with Schema Registry and Avro data:
Confluent CLI |
- For clusters in Confluent Cloud: refer to Developing Client Applications on Confluent Cloud for a practical guide to configuring, monitoring, and optimizing your Kafka client applications.
- For on-prem clusters: refer to Optimizing Your Apache Kafka Deployment whitepaper for a practical guide to optimizing your Apache Kafka deployment for various services goals including throughput, latency, durability and availability, and useful metrics to monitor for performance and cluster health.