Demo of Kafka Transactions API.
Modified and improved Demo originally from https://www.baeldung.com/kafka-exactly-once
Two examples:
TransactionalMessageProducer.java shows how to send multiple messages in a single transaction.
TransactionalWordCount.java shows how to combine producing and consumig messages in a single transaction.