Kafka - Message Delivery Semantics
You want to send two messages atomically to two different topics using a Kafka transactional producer. Which sequence of calls is correct?
// Assume producer is configured with transactional.id
producer.initTransactions();
// What is the correct order?