Client guarantees
yes means the guarantee holds and n/a means the capability has no meaning for that
surface. partial on compat.confluent delivery means callbacks fire on poll() or
flush(), as confluent’s do, rather than without polling.
The compat.confluent row is the migration shim: the native
rows’ guarantees, observed through confluent-kafka’s API.
| Surface | delivery | ordering | exit | offset commit | transactions | backpressure | rebalance |
|---|---|---|---|---|---|---|---|
producer |
yes | yes | yes | n/a | yes | yes | n/a |
consumer |
yes | n/a | yes | yes | yes | yes | yes |
compat.confluent |
partial | yes | yes | yes | yes | yes | yes |
Column definitions
Section titled “Column definitions”- delivery: A receipt resolves only after the broker acks the record per
acks(defaultall), without the caller polling; a refused record fails its receipt with a typed error. See Producer. - ordering: Records produced to one partition by one producer land in produce order, with
enable_idempotence=True. - exit: Closing settles what is in flight: a producer drains its queue, a consumer commits offsets staged with
store_offsets()wherever a partition leaves. See Producer and Consumer. - offset commit: Nothing is committed that was not polled; auto-commit is off by default (the
compat.confluentshim defaults it on, as confluent-kafka does). See Consumer. - transactions: Produce, offset commit and transaction end land as one unit, and a
read_committedconsumer (the default) never sees an aborted record. See Transactions. - backpressure: A full queue refuses new work with
QueueFulland never drops accepted work;pause/resumestop and restart fetch without losing position. - rebalance: Callbacks fire in order with the consumer released, and offsets staged for revoked partitions are committed before they leave. The callback rules are in Consumer.
Install and tested versions
Section titled “Install and tested versions”Supported brokers: Kafka 3.9+ (tested on 3.9 and 4.4), Confluent Platform 7.9+.
producer:KafkaProducerandAsyncKafkaProducershare one Rust actor; the async class drives it from the event loop’s executor and inherits every cell hereconsumer: the async consumer (AsyncKafkaConsumer) delegates every call to aKafkaConsumeron a worker thread and returns what the sync call returnscompat.confluent: A translation over the native rows, matching confluent-kafka 2.15.1’s API. Cells hold within the translated config.enable.auto.commitdefaults toTrue, confluent-kafka’s default (native:False); under it,poll()hands out what the tick,close()and a revoke commit. See Migrating from confluent-kafka.- A full queue raises
BufferError, and confluent’sProducerhas noclose(), so theexitcell isflush().
Differences from confluent-kafka
Section titled “Differences from confluent-kafka”Each of these is covered by the matrix cell named in the last column.
| You are used to | Here | Cell |
|---|---|---|
Records still queued when the producer is destroyed are dropped unless you flush() first |
Leaving the context manager drains, under the retry budget flush() uses; what cannot be delivered fails its receipt. purge() drops instead |
producer: exit |
close() commits only when enable.auto.commit is on |
Offsets staged with store_offsets are also committed at close() and on revoke when auto-commit is off |
consumer: exit |
Delivery callbacks fire only when you call poll(0) or flush() |
Receipts resolve on the broker’s ack without polling; the shim keeps confluent’s poll-driven callbacks | producer: delivery |