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 →
Also covered in
What to know first
- messageA message is a discrete unit of information or data communicated between participants or software components, often represented as a structured record.
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 party or system.
- Apache Kafkauses · Apache Kafka is a distributed event-streaming platform for publishing, storing, and processing streams of records.
- messageproduces · A message is a discrete unit of information or data communicated between participants or software components, often represented as a structured record.
- delimiterconfigured by · A delimiter is a character, sequence, or 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.
Questions about kafka-console-producer
What is kafka-console-producer?
kafka-console-producer is an Apache Kafka command-line utility that reads console input and publishes records to topics.
Which Manning books explain kafka-console-producer?
Apache Kafka in Action and Troubleshooting Java, Second Edition.
What should I know before learning kafka-console-producer?
Manning books that teach kafka-console-producer usually introduce message first.
What is the difference between kafka-console-producer and kcat?
kafka-console-producer is an Apache Kafka command-line utility that reads console input and publishes records to topics. kcat is a command-line Apache Kafka client for producing, consuming, and inspecting records and Kafka metadata.
What is kafka-console-producer a kind of?
Kafka-console-producer is a kind of client. A client is a person, organization, device, or software component that receives or uses a product, service, resource, or functionality provided by another party or system.
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.

