From the course: Apache Kafka Essential Training: Getting Started (2021)
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Publishing messages in Java
From the course: Apache Kafka Essential Training: Getting Started (2021)
Publishing messages in Java
- [Instructor] Let us run the producer we created in the previous video and review the results. Let's run this code now. If you see this Edit configuration page, then go down to the classpath for module and select the KafkaGettingStarted module, then hit the Run button. We can see the producer record printed here as publishing goes on. Ignore the values for the partition and timestamp. Those will be populated when you create advanced producers by manually setting these values. Note that multiple producers return in different programming languages can publish to the same topic simultaneously. For Kafka, everything is a sequence of bytes. In the next video, we will build a consumer to consume this data.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.