How Kafka Transactions Actually Work: A Walk Through the Two-Phase Commit

From a lost producer ack to atomic writes across two topics — what really happens under the hood.