You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We provide high-level Producer, Consumer and AdminClient classes analogous to the Java client. These are backwards and forwards compatible with all Kafka brokers from version 0.8.
8
8
9
-
-**High performance** - confluent-kafka-python is a lightweight wrapper around
10
-
[librdkafka](https://github.com/edenhill/librdkafka), a finely tuned C
11
-
client.
9
+
Characteristics:
12
10
13
-
-**Reliability** - There are a lot of details to get right when writing an Apache Kafka
14
-
client. We get them right in one place (librdkafka) and leverage this work
15
-
across all of our clients (also [confluent-kafka-go](https://github.com/confluentinc/confluent-kafka-go)
16
-
and [confluent-kafka-dotnet](https://github.com/confluentinc/confluent-kafka-dotnet)).
11
+
-**Reliability** - The Python client is a lightweight wrapper around [librdkafka](https://github.com/edenhill/librdkafka) which is widely deployed in a diverse set of demanding production scenarios. It's tested using [the same set of system tests](https://github.com/confluentinc/confluent-kafka-python/tree/master/confluent_kafka/kafkatest) as the Java client [and more](https://github.com/confluentinc/confluent-kafka-python/tree/master/tests). It's supported by [Confluent](https://confluent.io).
17
12
18
-
-**Supported** - Commercial support is offered by
19
-
[Confluent](https://confluent.io/).
13
+
-**Performance** - Performance is a key design consideration. Maximum throughput is comparable to the Java client for larger message sizes (where the overhead of the Python interpreter has less impact).
20
14
21
15
-**Future proof** - Confluent, founded by the
22
16
creators of Kafka, is building a [streaming platform](https://www.confluent.io/product/compare/)
23
17
with Apache Kafka at its core. It's high priority for us that client features keep
24
18
pace with core Apache Kafka and components of the [Confluent Platform](https://www.confluent.io/product/compare/).
25
19
26
-
The Python bindings provides a high-level Producer and Consumer with support
27
-
for the balanced consumer groups of Apache Kafka >= 0.9.
28
20
29
21
See the [API documentation](http://docs.confluent.io/current/clients/confluent-kafka-python/index.html) for more info.
30
22
@@ -34,6 +26,9 @@ See the [API documentation](http://docs.confluent.io/current/clients/confluent-k
34
26
Usage
35
27
=====
36
28
29
+
Below are some examples of typical usage. For more examples, including [how to configure](examples/confluent_cloud.py) the python client for use with
30
+
[Confluent Cloud](https://www.confluent.io/confluent-cloud/), see the [examples](examples) directory.
31
+
37
32
**Producer:**
38
33
39
34
```python
@@ -177,8 +172,31 @@ while True:
177
172
c.close()
178
173
```
179
174
180
-
See the [examples](examples) directory for more examples, including [how to configure](examples/confluent_cloud.py) the python client for use with
0 commit comments