Simple Kafka Producer example | Spring Boot | Spring Kafka



In this tutorial, we will be creating a simple Kafka Producer in Java. We will post a simple and Complex message on a Kafka topic using Spring Boot and Spring Kafka

GitHub CodeLink: https://bit.ly/2yNoAz7

Other Video:
—————————————————————————
How to Install Apache Kafka on Windows: https://youtu.be/EUzH9khPYgs
Spring Boot Tutorials: https://www.youtube.com/playlist?list=PLhfxuQVMs-nx3YQa3XJ9-4g_EoK0J8WhU
Quarkus Tutorials: https://www.youtube.com/playlist?list=PLhfxuQVMs-nzhcoO-5AvcRz_p6x2ezd3v

Follow us on :
——————————————————–
Website: http://www.dailycodebuffer.com/
Facebook: https://www.facebook.com/dailycodebuffer
Twitter: https://twitter.com/DailyCodeBuffer
Instagram: https://www.instagram.com/dailycodebuffer
GitHub: https://github.com/dailycodebuffer

My Laptop :
——————————————————
ASUS ROG Zephyrus G14, 14″ – https://amzn.to/3tMb1I6
ASUS ROG Zephyrus G14, 14″ (US) – https://amzn.to/3xa6X6m

Audio Gear :
——————————————————
Maono AU-A04 Condenser Microphone : https://amzn.to/32FOpwI
Maono AU-A04 Condenser Microphone (US) :https://amzn.to/3awzUj7

Secondary Audio :
——————————————————
Maono AU-100 Condenser Clip On Lavalier Microphone : https://amzn.to/3sGIbYd

Recommended Books:
——————————————————
Mastering Spring Boot 2.0 (Kindle): https://amzn.to/3tHJV4L
Mastering Spring Boot 2.0 (US) : https://amzn.to/3tHNUy5
Building Microservices(Kindle) : https://amzn.to/3gsA1jL
Building Microservices(US) : https://amzn.to/3dDnfNn
Spring Boot in Action : https://amzn.to/2Qo6YTM
Spring Boot in Action (US) : https://amzn.to/32DkeX9
Spring Microservices in Action : https://amzn.to/3gsA3rT
Spring Microservices in Action(US): https://amzn.to/32G3Hl7

Music:
——————————————————-
Otis McMusic (Sting): https://www.youtube.com/audiolibrary/music?nv=1
Hear the Noise (Sting): https://www.youtube.com/audiolibrary/music?nv=1
Song of Mirrors: https://www.youtube.com/audiolibrary/music?nv=1
“Sound effects obtained from https://www.zapsplat.com“

#Kafka #SpringKafka #Producer #DailyCodeBuffer #ApacheKafka #Apache #Spring #SpringBoot

source

12 thoughts on “Simple Kafka Producer example | Spring Boot | Spring Kafka”
  1. Thankyou shabbir for your efforts. could you please make a video on real time usage of kafka in micro services.

  2. This is the 5th video which has the same thing in it. It’s a typical copy paste video. Was wanting some more insights but very superficial.

  3. Hi Shabbir, Please make your Intellij bckgrnd white , cuz it's dark and not so clearly visible. But, I must say all your videos are really good for developers like me who are learning Kafka , Springboot , microservices.

  4. In the initial case when String is the message, how the springboot application is finding the kafka server? Nowhere ip address and port of kafka server is mentioned. In the later case when book object is sent, kafka server is configured in Kafka Template. Hence makes sense.

  5. I really like your videos. Keep going with the good work, and thanks! While implementing what you did, I just changed a bit, and configured everything in the application.properties, so I didn't need the KafkaConfig class:

    server.port=8081

    topic.name=TestTopic

    spring.kafka.producer.value-serializer=org.springframework.kafka.support.serializer.JsonSerializer

    spring.kafka.bootstrap-servers=localhost:9092

  6. Excellent friend! Thank you for these contents!
    I have a little problem, maybe you could help me. All is working properly, but when i write ".binwindowskafka-console-consumer.bat –bootstrap-server localhost:9092 –topic NewTopic –from-beginning" in CMD and press ENTER, nothing happens, the mouse keep blinking line down, but my changes in the project doesn't appears into cmd. The changes are being displayed as successfully, the problem is about cmd.

Leave a Reply

Your email address will not be published.

Captcha loading...