Skip to content

marco-sanjuan/kafka-tx-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Testing Kafka transactional

Start Kafka

bin/zookeeper-server-start.sh config/zookeeper.properties

bin/kafka-server-start.sh config/server.properties

Create topic (only after first kafka start)

bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic kafka-tx-topic

Start services and check results

  1. Start KafkaTxProducerApplication to produce messages.
  2. Check console output.
  3. Start KafkaTxConsumerApplication to consume messages.
  4. Check console output: only messages sent over commited transactions should be consumed (due to isolation.level: read_committed consumer configuration)

About

Sandbox to test Kafka transactional management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages