MyGit

v1.4.0

confluentinc/confluent-kafka-python

版本发布时间: 2020-04-22 00:34:58

confluentinc/confluent-kafka-python最新发布版本:v2.5.3(2024-09-02 22:24:36)

Confluent's Python client for Apache Kafka

v1.4.0 is a feature release:

confluent-kafka-python is based on librdkafka v1.4.0, see the librdkafka v1.4.0 release notes for a complete list of changes, enhancements, fixes and upgrade considerations.

Transactional Producer API

Release v1.4.0 for confluent-kafka-python adds complete Exactly-Once-Semantics (EOS) functionality, supporting the idempotent producer (since v1.0.0), a transaction-aware consumer (since v1.2.0) and full producer transaction support (v1.4.0).

This enables developers to create Exactly-Once applications with Apache Kafka.

See the Transactions in Apache Kafka page for an introduction and check the transactions example.

Generic Serializer API

Release v1.4.0 introduces a new, experimental, API which adds serialization capabilities to Kafka Producer and Consumer. This feature provides the ability to configure Producer/Consumer key and value serializers/deserializers independently. Previously all serialization must be handled prior to calling Producer.produce and after Consumer.poll.

This release ships with 3 built-in, Java compatible, standard serializer and deserializer classes:

Name Type Format
Double float IEEE 764 binary64
Integer int int32
String Unicode bytes*

* The StringSerializer codec is configurable and supports any one of Python's standard encodings. If left unspecified 'UTF-8' will be used.

Additional serialization implementations are possible through the extension of the Serializer and Deserializer base classes.

See avro_producer.py and avro_consumer.py for example usage.

Avro, Protobuf and JSON Schema Serializers

Release v1.4.0 for confluent-kafka-python adds support for two new Schema Registry serialization formats with its Generic Serialization API; JSON and Protobuf. A new set of Avro Serialization classes have also been added to conform to the new API.

Format Serializer Example Deserializer Example
Avro avro_producer.py avro_consumer.py
JSON json_producer.py json_consumer.py
Protobuf protobuf_producer.py protobuf_consumer.py

Security fixes

Two security issues have been identified in the SASL SCRAM protocol handler:

Both of these issues are fixed in this release.

Enhancements

Fixes

General:

Schema Registry/Avro:

Also see the librdkafka v1.4.0 release notes for fixes to the underlying client implementation.

相关地址:原始地址 下载(tar) 下载(zip)

查看:2020-04-22发行的版本