Apache Kafka 4 · Producing and consuming
Consume as part of a group
Join a consumer group so the group's offsets are saved.
bin/kafka-console-consumer.sh --topic orders --bootstrap-server localhost:9092 --group order-readers
Official Apache Kafka 4 documentation
More producing and consuming commands
- Send messages from the terminal
- Send keyed messages
- Read messages from the start
- Show keys and timestamps
All producing and consuming commands · Apache Kafka 4 cheatsheet