You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Artur Bondek <ar...@zowie.ai> on 2024/10/25 10:29:12 UTC
Kafka producer transaction details
Hi,
I would like to ask about the kafka producer transaction. Documentation
states (https://kafka.apache.org/documentation/#semantics):
Also beginning with 0.11.0.0, *the producer supports the ability to send
messages to multiple topic partitions* using transaction-like semantics:
i.e. either all messages are successfully written or none of them are.
Does it mean that the producer supports transactions in multiple topics
(and multiple partitions)? Or it's just for multiple partitions but within
a single topic?
Artur Bondek
Re: Kafka producer transaction details
Posted by Greg Harris <gr...@aiven.io.INVALID>.
Hi Artur,
Thanks for the question!
In transactions there's no distinction between partitions within the same
topic and partitions in different topics. You can have transactions across
multiple topics, and multiple partitions in those topics.
Hope this is more clear,
Greg
On Fri, Oct 25, 2024 at 5:11 AM Artur Bondek <ar...@zowie.ai> wrote:
> Hi,
>
> I would like to ask about the kafka producer transaction. Documentation
> states (https://kafka.apache.org/documentation/#semantics):
> Also beginning with 0.11.0.0, *the producer supports the ability to send
> messages to multiple topic partitions* using transaction-like semantics:
> i.e. either all messages are successfully written or none of them are.
>
> Does it mean that the producer supports transactions in multiple topics
> (and multiple partitions)? Or it's just for multiple partitions but within
> a single topic?
>
> Artur Bondek
>