bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic kafka-tx-topic
- Start
KafkaTxProducerApplication
to produce messages. - Check console output.
- Start
KafkaTxConsumerApplication
to consume messages. - Check console output: only messages sent over commited transactions should be consumed (due to
isolation.level: read_committed
consumer configuration)