confluent-kafka-python provides a high-level Producer, Consumer and AdminClient compatible with all Apache KafkaTM brokers >= v0.8, Confluent Cloud and the Confluent Platform. The client is:
- Reliable - Itās a wrapper around librdkafka (provided automatically via binary wheels) which is widely deployed in a diverse set of production scenarios. Itās tested using the same set of system tests as the Java client and more. Itās supported by Confluent.
- Performant - Performance is a key design consideration. Maximum throughput is on par with the Java client for larger message sizes (where the overhead of the Python interpreter has less impact). Latency is on par with the Java client.
- Future proof - Confluent, founded by the original co-creators of Kafka, is building a streaming platform with Apache Kafka at its core. Itās high priority for us that client features keep pace with core Apache Kafka and components of the Confluent Platform.
See the API documentation for more info.
Code samples: examples/clients/cloud/python at 6.0.0-post Ā· confluentinc/examples Ā· GitHub