After the producer initiates a commit (or an abort), the coordinator begins the two-phase commit protocol. In the first phase, the coordinator updates its internal state to “prepare_commit” and updates this state in the
Where is 2 phase commit used?
The two-phase commit protocol (2PC) has been used in enterprise software systems for over three decades. It has been an an incredibly impactful protocol for ensuring atomicity and durability of transactions that access data in multiple partitions or shards.
Does Kafka support XA transactions?
Kafka has no support for XA transactions. Kafka delegates the burden of exactly-once to the message consumer.