Spring Boot with Spring Kafka Producer Example | Tech Primers

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2018
  • This video covers Spring Boot with Spring kafka producer Example
    Join this channel by contributing to the community:
    / @techprimers
    🔗Github Code: github.com/TechPrimers/spring...
    🔗Kafka Consumer Video: • Spring Boot with Sprin...
    📌 Related Playlist
    ================
    🔗Spring Boot Primer - • Spring Boot Primer
    🔗Spring Cloud Primer - • Spring Cloud Primer
    🔗Spring Microservices Primer - • Spring Microservices P...
    🔗Spring JPA Primer - • Spring JPA Primer
    🔗Java 8 Streams - • Java 8 Streams
    🔗Spring Security Primer - • Spring Security Primer
    🔗Containers Primer - • Containers Primer
    🔗Kubernetes Primer - • Kubernetes Primer
    🔗AWS Primer - • AWS Primer
    💥Join TechPrimers Slack Community: bit.ly/JoinTechPrimers
    💥Telegram: t.me/TechPrimers
    💥TechPrimer HindSight (Blog): / techprimers
    💥Website: techprimers.com
    💥Slack Community: techprimers.slack.com
    💥Twitter: / techprimers
    💥Facebook: TechPrimers
    💥GitHub: github.com/TechPrimers or techprimers.github.io/
    🎬Video Editing: iMovie
    🎼Background Music: Broke For Free - Day Bird
    brokeforfree.bandcamp.com/tra...
    The Passion HiFi - What We Came To Do
    Joakin Karud
    Dyalla
    ---------------------------------------------------------------
    🔥 Disclaimer/Policy:
    The content/views/opinions posted here are solely mine and the code samples created by me are open sourced.
    You are free to use the code samples in Github after forking and you can modify it for your own use.
    All the videos posted here are copyrighted. You cannot re-distribute videos on this channel in other channels or platforms.
    #Kafka #SpringBoot #TechPrimers
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 185

  • @manojmajumdar3815
    @manojmajumdar3815 3 ปีที่แล้ว +24

    Wasted a whole day reading a dzone article regarding kafka, this tutorial made my day, beautifully explained!!!!

    • @TechPrimers
      @TechPrimers  3 ปีที่แล้ว

      Glad it was helpful!

    • @VANTYCSolutions
      @VANTYCSolutions 3 ปีที่แล้ว

      Absolutely

    • @abhishek9720
      @abhishek9720 3 ปีที่แล้ว

      bahut sahi bhai

    • @BaluKompalli
      @BaluKompalli 3 ปีที่แล้ว

      Yes ,dzone is waste to read. Only that author will know what he is trying to say

  • @JohnnyNilsson83
    @JohnnyNilsson83 3 ปีที่แล้ว +12

    Great and simple explanation. Nothing extra, just straight on point all the time. Thank you!

  • @Hufsa
    @Hufsa 2 ปีที่แล้ว

    This is pure gold, the way you explained using a simple GET and showing how to pass a String and then a JSON make the example perfect, great job.

  • @utbhargav
    @utbhargav 2 ปีที่แล้ว +1

    Watched so many Vidoes on Kafka to understand but finally end up with this video for kafka understanding.. Thank you for serving IT community.

  • @adilkhanabdrashov7507
    @adilkhanabdrashov7507 2 ปีที่แล้ว

    Amazing channel!!! ONE OF THE BEST I've SEEN!!! THANK YOU SO MUCH! WITH LOVE & RESPECT FROM KAZAKHSTAN!!!!

  • @NgocBich-tunmiumeo
    @NgocBich-tunmiumeo 3 ปีที่แล้ว +3

    Very straightforward explanation. Thank you so much. It's very useful for me!

  • @BaluKompalli
    @BaluKompalli 3 ปีที่แล้ว +3

    Great video.. Easily understood.. I am a beginner to Kafka. Didn't understand all the theory part. But this practical example useful very much.

  • @SushilKumarBhaskar
    @SushilKumarBhaskar 5 ปีที่แล้ว

    One of the great tutorial on Kafka clear and concise

  • @cleyxds7112
    @cleyxds7112 3 ปีที่แล้ว +4

    thats exactly what i was looking for, thank you so much!

  • @nagarajanerode
    @nagarajanerode 4 ปีที่แล้ว +1

    Very simple and straight forward explanation .... Thanks...

  • @cicciopasticcio8469
    @cicciopasticcio8469 3 ปีที่แล้ว +1

    Perfect video to start playing with Kafka & spring boot

  • @sudarsanedagotti4525
    @sudarsanedagotti4525 4 ปีที่แล้ว +1

    Thank you so much.. it is very simple and I made it in 30 mins using this tutorial

  • @davidemm841
    @davidemm841 5 ปีที่แล้ว +3

    Thanks for this video. Simple and useful. it was very helpful!

  • @jhonceenaskt
    @jhonceenaskt 4 ปีที่แล้ว +1

    Thank man, simple but detailed informative, keep it up, wish u all the best...

  • @AB-my3hx
    @AB-my3hx 3 ปีที่แล้ว

    It is very useful video; I learned about Kafka from this video tutorial. Thank you so much and god bless you.

  • @balamurali7214
    @balamurali7214 4 ปีที่แล้ว

    Awesome explanation. Able to understand the concepts clearly. Thanks.

  • @spicy2602
    @spicy2602 3 ปีที่แล้ว +1

    Short and sweet tutorial. Thanks 😊

  • @bijoysahu6715
    @bijoysahu6715 4 ปีที่แล้ว

    Great explained.. please post more videos on Kafka. Thank you.

  • @Srini8174
    @Srini8174 3 ปีที่แล้ว +1

    Thank you for clear explanation along with example

  • @kirityrapuru
    @kirityrapuru 5 ปีที่แล้ว +1

    Great. Thanks for your work, as always.

  • @raghuls1469
    @raghuls1469 2 ปีที่แล้ว

    Really good explanation. It was working perfectly for me.

  • @rajkishorekumar
    @rajkishorekumar 5 ปีที่แล้ว +1

    Thanks very much for this video.. Simple and effective

  • @jayanareshk7566
    @jayanareshk7566 4 ปีที่แล้ว +1

    Thanks for simple and clear explanation

  • @UmarShaikh-ck3vt
    @UmarShaikh-ck3vt 2 ปีที่แล้ว +1

    BEST and CLEAN Thanks

  • @AryanVenkatOfficial
    @AryanVenkatOfficial 6 ปีที่แล้ว +2

    Good work guys!

  • @sumeshsuseelan2954
    @sumeshsuseelan2954 3 ปีที่แล้ว +1

    Thank you so much, bro.
    This video helped me a lot :)

  • @SameeraSenarathna
    @SameeraSenarathna 5 ปีที่แล้ว +2

    Thank you for simple and complete explanation. :-)

  • @ambersingh1493
    @ambersingh1493 3 ปีที่แล้ว +1

    Awesome video bro. Really helpful. Thanks.

  • @RohitSingh-ITProfessional
    @RohitSingh-ITProfessional ปีที่แล้ว +1

    Awesome - simple and great content

  • @commonman8540
    @commonman8540 ปีที่แล้ว +1

    great, very nice explanation

  • @shivammishra009
    @shivammishra009 5 ปีที่แล้ว +1

    Sweet and simple , thanks for the video :)

  • @amebaos
    @amebaos 3 ปีที่แล้ว +1

    Thanks. It worked like charm!!!!

  • @nitishprasadkushwaha
    @nitishprasadkushwaha 2 ปีที่แล้ว +1

    glad i found this channel

  • @silviafarfan2523
    @silviafarfan2523 2 ปีที่แล้ว +1

    Very clear explanation. Thank you

  • @bilalhayat1
    @bilalhayat1 4 ปีที่แล้ว +1

    Simple and good explanation.

  • @availkrishmytube
    @availkrishmytube 3 ปีที่แล้ว

    Great session!

  • @stephenlimb6141
    @stephenlimb6141 2 ปีที่แล้ว

    Good stuff, straight to the point. Thanks.

  • @abhiroy82
    @abhiroy82 3 ปีที่แล้ว

    awesome Video !!! thanks dude!

  • @yadd13
    @yadd13 ปีที่แล้ว

    Lovely explanation 👌🙏🏼

  • @meprajwal01
    @meprajwal01 3 ปีที่แล้ว +1

    Thanks for the video. It's very useful.

  • @mitalighotgalkar7666
    @mitalighotgalkar7666 ปีที่แล้ว

    Amazing video!

  • @rekicool2273
    @rekicool2273 5 ปีที่แล้ว +1

    浅显易懂,非常感谢!!!

  • @HariPrasad-yt4mn
    @HariPrasad-yt4mn 3 ปีที่แล้ว

    You are my tech guru

  • @dimimurik3970
    @dimimurik3970 3 ปีที่แล้ว +1

    Great! Thanx for your effort!

  • @kaikeventura3893
    @kaikeventura3893 4 ปีที่แล้ว +1

    Very good! Thank you friend! 🇧🇷

  • @pallavimisra9753
    @pallavimisra9753 3 ปีที่แล้ว +1

    Thanks for the great content

  • @rrafaelpaz
    @rrafaelpaz 4 ปีที่แล้ว

    That explanation was really really good mate! Cheers for explaining step by step! All the best :)

  • @MrYtkrishna
    @MrYtkrishna 3 ปีที่แล้ว +1

    Good and clear explanation..

  • @karthikmk9
    @karthikmk9 6 ปีที่แล้ว +5

    How do we need to work with multiple cluster nodes with zookeeper and spring boot (kafka).
    How it will prioritize the incoming requests, because all requests are given to nodes (1..n) and in that one node gets prioritiy. How kafka handles requests and passes to zookeeper with spring boot

  • @124estera
    @124estera 5 ปีที่แล้ว +1

    Very good. Thank you

  • @sfandi1946
    @sfandi1946 3 ปีที่แล้ว +1

    very good tutorial!

  • @vishalpathode
    @vishalpathode 5 ปีที่แล้ว +1

    Great tutorial

  • @MohammadRasoolShaik
    @MohammadRasoolShaik 4 ปีที่แล้ว

    The way you are explaining is really good, you are making things really easy...
    I have one question though, In the first example when we are sending a string message to Kafka, we didn't configure anything. Configurations like which server(BootStrapServers), Serialization info(Key and Value Serializers).
    How does it happen, KafkaTemple by default does some magic inside?
    What happens info I don't send Serializers info to Kafka broker while sending publishing a message?

  • @mahaveerkolekar3862
    @mahaveerkolekar3862 4 ปีที่แล้ว +1

    Very nice and usefull video

  • @kashif3720
    @kashif3720 6 ปีที่แล้ว +1

    very nice tutorial.
    request one thing to add is kafka test

  • @balsubu1
    @balsubu1 2 ปีที่แล้ว +1

    very nice...neatly explained

  • @karthikmk9
    @karthikmk9 6 ปีที่แล้ว +2

    Good explaination

  • @namankumar2220
    @namankumar2220 5 ปีที่แล้ว +1

    awesome video...

  • @varunpanji
    @varunpanji 4 ปีที่แล้ว

    Thank you TechPrimers for this video, it was helpful for me to start with it. Also i would request to explain the concepts a bit slow than the present speed which is available in this video.

    • @TechPrimers
      @TechPrimers  4 ปีที่แล้ว +1

      You can leverage the speed control in TH-cam to slow down the video by 0.5x or 0.25x 🤓

  • @2012oyt
    @2012oyt 4 ปีที่แล้ว +1

    thank you so much!!

  • @carlosjuliopv
    @carlosjuliopv 5 ปีที่แล้ว +1

    Awesome video !! Hello from Colombia

    • @TechPrimers
      @TechPrimers  5 ปีที่แล้ว

      Hi Carlos. Great to see you.
      Welcome to TechPrimers

  • @yhariprasadreddy2949
    @yhariprasadreddy2949 6 ปีที่แล้ว

    while running in my local same code is giving the serializationException,unable to figure it out every thing is downloaded from GIT.pls help me to resolve

  • @thulasikiran
    @thulasikiran 5 ปีที่แล้ว +5

    Cool !! very useful video. It's simple to understand Kafka. May I request you to make a video on multiple microservices communicating with each other using Kafka. Thank you once again for the tutorial.

  • @kirlampallimurty5115
    @kirlampallimurty5115 4 ปีที่แล้ว

    Gr8, Thanks for this.

  • @rakeshroshan829
    @rakeshroshan829 3 ปีที่แล้ว +1

    Hi, can you also cover the Sync and Async producer send options with Future and Callbacks?

  • @laxman20101
    @laxman20101 2 ปีที่แล้ว

    I have a doubt, at 16:26, we have created a bean for producer factory but instead of autowiring in Kafka template why do we need to call the function producerFactory()?

  • @yogeshkurane123
    @yogeshkurane123 4 ปีที่แล้ว +1

    Thank you ! ❤️

  • @vishnumurali522
    @vishnumurali522 4 ปีที่แล้ว

    clearly understanding bro.But whats my question is in my case i want to send a file content in a topic and i have to consume it.Then what kind of value serializer have to use?

  • @Mahesh-ry9oe
    @Mahesh-ry9oe 5 ปีที่แล้ว +7

    We can also configure in application.properties instead of configuration class.

  • @selvarajb8791
    @selvarajb8791 4 ปีที่แล้ว

    hey pls tell yeah in kafka console its not displaying the message but localhost :8081 showing the message Published

  • @diogennesthesinope61
    @diogennesthesinope61 2 ปีที่แล้ว

    Awesome xplanation, thnx! Could do some for springboot, reactive webflux.

  • @monalisakushwaha2517
    @monalisakushwaha2517 4 ปีที่แล้ว

    I am facing an issue in running the KAFKA server. My ZOOKEEPER is UP. But when I am trying to UP the KAFKA server. Nothing is displayed on the screen. Even i have checked the PATH variable in USER/SYSTEM variables.

  • @akhileshguptaakhi
    @akhileshguptaakhi 4 ปีที่แล้ว +1

    Hello Sir, how do we decide when to use messaging or when to use RestTemplate ? Can you give me some practical use cases for messaging

  • @SHIVAKUMAR-sg2pp
    @SHIVAKUMAR-sg2pp 4 ปีที่แล้ว

    Can we use json object mapper instead of serialization class?

  • @suryasimhadri
    @suryasimhadri 2 ปีที่แล้ว

    Very good video and nice explanation in simple terms. I have one query, can we publish a flat file in kafka topic. If yes, please provide the details or example on it.

  • @deepujs
    @deepujs 3 ปีที่แล้ว +1

    @Bean above producerFactory method is not required. right? as it is getting called from the kafkaTemplate method which has @Bean

  • @karan6551
    @karan6551 3 ปีที่แล้ว +1

    Awesome ❤️❤️❤️🔥❤️🔥❤️❤️❤️❤️

  • @kommesreelatha473
    @kommesreelatha473 ปีที่แล้ว

    Hi sir, am unable to print the data in console while hitting the loacalhost url
    In the browser it is showing puliah successfully but not publishing anything in console. Please assist me with this.
    Thanks in advance.

  • @umarulfarooqa4313
    @umarulfarooqa4313 3 ปีที่แล้ว +2

    Very good.

  • @amithraju830
    @amithraju830 5 ปีที่แล้ว

    Can make a video on rebalancing and how to handle the rebalance at the consumer end.

  • @NikhilJain08
    @NikhilJain08 2 ปีที่แล้ว

    How to work with Kafka on WIndows? It keep on throwing file access denied error

  • @swapnilmedhe6679
    @swapnilmedhe6679 2 ปีที่แล้ว

    Hi
    i got one error when i try to publish user object
    kafka.controller.User cannot be cast to java.lang.String
    I set the configuration exactly the same way as per video

  • @reshmaa6345
    @reshmaa6345 5 ปีที่แล้ว

    is there any examples available where Kafka is implemented using a service??

  • @diegoramos27
    @diegoramos27 3 ปีที่แล้ว

    super good and straightforward, only question is why are you using BOOTSTRAP_SERVER_CONFIG at port 9092 if default port is 2181? thanks

  • @siyedyoussef3202
    @siyedyoussef3202 6 ปีที่แล้ว +1

    Great vidéo as Always #like

  • @himanshudesai17
    @himanshudesai17 3 ปีที่แล้ว +1

    What if Kafka server down and we are pushing data how to handle this situation.

  • @joshione09
    @joshione09 6 ปีที่แล้ว +2

    So nice vídeo

  • @entertainment55
    @entertainment55 4 ปีที่แล้ว

    how to change port number 9092???? 9092 is default, if I use other than 9092 then its not working

  • @GaneshGane-sl1fi
    @GaneshGane-sl1fi 3 ปีที่แล้ว

    from localhost im not able to publish my message what can I do?

  • @na-kh5lg
    @na-kh5lg 4 ปีที่แล้ว

    It was amazing tutorial.you have explained one way but what you think about Kafka consumer.Did you cover any video for that?

  • @user-wq9vh8xt8d
    @user-wq9vh8xt8d 2 ปีที่แล้ว

    Please, how calls last song in this video?

  • @imedhr1814
    @imedhr1814 5 ปีที่แล้ว +1

    very nice thnks

  • @santhoshmittapelly3959
    @santhoshmittapelly3959 3 ปีที่แล้ว

    Hi can we publish XML directly to Kafka topic. If yes can you provide me an example Iam in need of it. Thanks in advance ..

  • @sanki555
    @sanki555 4 ปีที่แล้ว

    The kafka Topic was created on port 2181 , then why was the Producer Config Set to 9082 ?
    In the Consumer Video also the Config Was having the same port 9082 . The producer Should be Posting on Port 2181 and the Consumer should be listening to port 9082 right?

  • @rutulshah2007
    @rutulshah2007 3 ปีที่แล้ว

    What is the meaning of key.serializer config ? Is it the topic name ? Since topic name is going to be in string we provide key.serializer = StringSerializer.class ?

  • @balajimanoharan1716
    @balajimanoharan1716 4 ปีที่แล้ว

    Good tutorial. How are you reading such things . Detailed info. while you are importing package do please show the import class once you are done with the coding for the class.

  • @Shiva-zy7jq
    @Shiva-zy7jq 3 ปีที่แล้ว

    How did the Spring boot initially connected to Kafka without mentioning anything?

  • @venkatasailendra4852
    @venkatasailendra4852 5 ปีที่แล้ว

    Why did u hardcode kafka topic?? Can't you move it to application.propertiers? Bcz students are watching

  • @naveenakuntalabavi3055
    @naveenakuntalabavi3055 2 ปีที่แล้ว +1

    Great and simple explanation
    if possible please share a real time use case of kafka in springboot µservices

    • @TechPrimers
      @TechPrimers  2 ปีที่แล้ว

      It's shared already naveena
      Take a look at my video on Kafka Streams

  • @fujinafiul6044
    @fujinafiul6044 4 ปีที่แล้ว +1

    thanx a lot