Kafka-console-producer
kafka-console-producer is an Apache Kafka command-line utility that reads console input and publishes records to topics.
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
- clientkind of · A client is a person, organization, device, or software component that receives or uses a product, service, resource, or functionality provided by another entity.
- recorduses · A Kafka record, also called a message, is a data item published to or consumed from a Kafka topic, optionally containing a key, value, and metadata.
- Apache Kafkauses · Apache Kafka is a distributed event-streaming platform for publishing, storing, processing, and consuming streams of records.
- delimiterconfigured by · A delimiter is a character, sequence, or other marker that separates or marks boundaries between portions of text or structured data.
- Kafka producerkind of · A Kafka producer is an application or client that publishes records to Kafka topics.
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.

