liveBook · Manning

Kafka-console-producer

kafka-console-producer is an Apache Kafka command-line utility that reads console input and publishes records to topics.

How 2 Manning books explain it

Apache Kafka in Action

kafka-console-producer.sh is an Apache Kafka command-line utility that publishes records to a topic from console input.

How it is used
Publishes test or simulated operational records to Kafka topics from piped or interactive console input.
How deep it goes
Explains topic and broker options, line-based delivery, stopping behavior, parallel producers, and consumer verification.
Examples
Uses coffee, pillow, and blanket price records with piped, interactive, parallel-producer, and consumer-replay demonstrations.
What you can do after
Operate/configure the command to publish individual records and observe them through Kafka consumers.

Read how Apache Kafka in Action explains kafka-console-producer →

Troubleshooting Java, Second Edition

kafka-console-producer is a Kafka command-line utility for publishing records to Kafka topics.

How it is used
Supports replaying Kafka events, inspecting messages, and verifying consumer behavior during troubleshooting.
How deep it goes
Defines the utility's troubleshooting role and demonstrates replay, but does not specify command syntax or options.
Examples
Uses missed UserRegistered events and a misconfigured consumer to validate replay into an email service.
What you can do after
Diagnose/debug Kafka consumption by replaying records and checking whether the consumer processes them correctly.

Read how Troubleshooting Java, Second Edition explains kafka-console-producer →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.