kafka-console-producer is a Kafka command-line utility for publishing records to topics. It is especially useful when investigating whether consumers receive expected events. section 13.2.2
Use it alongside Kafka inspection and replay tools to:
- Replay missed events after confirming that messages remain in the Kafka event log. section 13.2.2
- Validate a corrected topic configuration in a local test environment. section 13.2.2
- Verify that a consumer processes the replayed records as expected. section 13.2.2
Replaying missed events
A service was listening to the wrong Kafka topic, so it never saw the events. After correcting the configuration locally, a developer replayed the missed records with kafka-console-producer and kafka-console-consumer, confirming that the email service handled them correctly. section 13.2.2
Figure 13.6 A developer can choose to replay events to troubleshoot a certain scenario.
Use the event-replay diagram to connect the command-line utility with troubleshooting a specific event-driven scenario. section 13.2.2

