kafka-console-consumer.sh reads records from a Kafka topic and displays them in the terminal. It is useful for checking a price-change stream, simulating an analysis component, or watching inventory updates as they arrive. section 2.0 section 2.3
A basic consumer uses the topic and broker connection, with these operational behaviors:
- Expect it to keep running until Ctrl-C; by default, it waits for and prints only new records. section 2.3
- Add --from-beginning when already written records must be displayed. section 2.3
Watch current changes and replay history
Start one consumer without --from-beginning to monitor new price changes immediately. Start another with --from-beginning to replay the retained history independently; both can display the same topic without coordinating with each other. section 2.4

