Skip to content

Commit 9786582

Browse files
committed
Changes based on review feedback
1 parent 8b5684e commit 9786582

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ Confluent's Python Client for Apache Kafka<sup>TM</sup>
33

44
**confluent-kafka-python** is Confluent's Python client for [Apache Kafka](http://kafka.apache.org/) and the
55
[Confluent Platform](https://www.confluent.io/product/compare/). It provides a high-level Producer, Consumer
6-
and AdminClient analogous to the Java client which are backwards and forwards compatible with all
7-
Kafka brokers from version 0.8.
6+
and AdminClient which are backwards and forwards compatible with all Kafka brokers from version 0.8.
87

98
Characteristics:
109

1110
- **Reliable** - The Python client is a wrapper around [librdkafka](https://github.com/edenhill/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](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).
1211

13-
- **Performant** - Performance is a key design consideration. Latency is on par with the Java client, as is maximum throughput for larger message sizes (where the overhead of the Python interpreter has less impact).
12+
- **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.
1413

1514
- **Future proof** - Confluent, founded by the
1615
creators of Kafka, is building a [streaming platform](https://www.confluent.io/product/compare/)
@@ -29,7 +28,7 @@ Usage
2928
Below are some examples of typical usage. For more examples, including [how to configure](examples/confluent_cloud.py) the python client for use with
3029
[Confluent Cloud](https://www.confluent.io/confluent-cloud/), see the [examples](examples) directory.
3130

32-
**Producer:**
31+
**Producer**
3332

3433
```python
3534
from confluent_kafka import Producer
@@ -60,7 +59,7 @@ p.flush()
6059
```
6160

6261

63-
**High-level Consumer:**
62+
**High-level Consumer**
6463

6564
```python
6665
from confluent_kafka import Consumer, KafkaError
@@ -182,7 +181,9 @@ from confluent_kafka.admin import AdminClient, NewTopic
182181
a = AdminClient({'bootstrap.servers': 'mybroker'})
183182

184183
new_topics = [NewTopic(topic, num_partitions=3, replication_factor=1) for topic in ["topic1", "topic2"]]
185-
# Call create_topics to asynchronously create topics, a dict
184+
# Note: In a multi-cluster production scenario, it is more typical to use a replication_factor of 3 for durability.
185+
186+
# Call create_topics to asynchronously create topics. A dict
186187
# of <topic,future> is returned.
187188
fs = a.create_topics(new_topics)
188189

@@ -212,11 +213,11 @@ Install
212213
confluent-kafka using the command in the "Install from
213214
source from PyPi" section below.
214215

215-
**Install self-contained binary wheels for OSX and Linux from PyPi:**
216+
**Install self-contained binary wheels for OSX and Linux from PyPi**
216217

217218
$ pip install confluent-kafka
218219

219-
**Install AvroProducer and AvroConsumer:**
220+
**Install AvroProducer and AvroConsumer**
220221

221222
$ pip install "confluent-kafka[avro]"
222223

@@ -283,7 +284,7 @@ Tests
283284
=====
284285

285286

286-
**Run unit-tests:**
287+
**Run unit-tests**
287288

288289
In order to run full test suite, simply execute:
289290

@@ -292,7 +293,7 @@ In order to run full test suite, simply execute:
292293
**NOTE**: Requires `tox` (please install with `pip install tox`), several supported versions of Python on your path, and `librdkafka` [installed](tools/bootstrap-librdkafka.sh) into `tmp-build`.
293294

294295

295-
**Integration tests:**
296+
**Integration tests**
296297

297298
See [tests/README.md](tests/README.md) for instructions on how to run integration tests.
298299

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy