Spring Boot with Spring Kafka Producer Example | Tech Primers

Sdílet
Vložit
  • čas přidán 17. 05. 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
  • Jak na to + styl

Komentáře • 185

  • @manojmajumdar3815
    @manojmajumdar3815 Před 3 lety +24

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

  • @JohnnyNilsson83
    @JohnnyNilsson83 Před 3 lety +12

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

  • @Hufsa
    @Hufsa Před 2 lety

    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 Před 2 lety +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.

  • @davidemm841
    @davidemm841 Před 5 lety +3

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

  • @sudarsanedagotti4525
    @sudarsanedagotti4525 Před 4 lety +1

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

  • @NgocBich-tunmiumeo
    @NgocBich-tunmiumeo Před 3 lety +3

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

  • @jhonceenaskt
    @jhonceenaskt Před 4 lety +1

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

  • @kirityrapuru
    @kirityrapuru Před 5 lety +1

    Great. Thanks for your work, as always.

  • @cleyxds7112
    @cleyxds7112 Před 3 lety +4

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

  • @SushilKumarBhaskar
    @SushilKumarBhaskar Před 5 lety

    One of the great tutorial on Kafka clear and concise

  • @balamurali7214
    @balamurali7214 Před 4 lety

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

  • @nagarajanerode
    @nagarajanerode Před 4 lety +1

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

  • @SameeraSenarathna
    @SameeraSenarathna Před 5 lety +2

    Thank you for simple and complete explanation. :-)

  • @sumeshsuseelan2954
    @sumeshsuseelan2954 Před 3 lety +1

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

  • @rajkishorekumar
    @rajkishorekumar Před 5 lety +1

    Thanks very much for this video.. Simple and effective

  • @shivammishra009
    @shivammishra009 Před 5 lety +1

    Sweet and simple , thanks for the video :)

  • @adilkhanabdrashov7507
    @adilkhanabdrashov7507 Před 2 lety

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

  • @jayanareshk7566
    @jayanareshk7566 Před 4 lety +1

    Thanks for simple and clear explanation

  • @Srini8174
    @Srini8174 Před 3 lety +1

    Thank you for clear explanation along with example

  • @AryanVenkatOfficial
    @AryanVenkatOfficial Před 6 lety +2

    Good work guys!

  • @spicy2602
    @spicy2602 Před 3 lety +1

    Short and sweet tutorial. Thanks 😊

  • @BaluKompalli
    @BaluKompalli Před 3 lety +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.

  • @bijoysahu6715
    @bijoysahu6715 Před 4 lety

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

  • @kaikeventura3893
    @kaikeventura3893 Před 4 lety +1

    Very good! Thank you friend! 🇧🇷

  • @bilalhayat1
    @bilalhayat1 Před 4 lety +1

    Simple and good explanation.

  • @amebaos
    @amebaos Před 3 lety +1

    Thanks. It worked like charm!!!!

  • @cicciopasticcio8469
    @cicciopasticcio8469 Před 3 lety +1

    Perfect video to start playing with Kafka & spring boot

  • @rekicool2273
    @rekicool2273 Před 5 lety +1

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

  • @yogeshkurane123
    @yogeshkurane123 Před 4 lety +1

    Thank you ! ❤️

  • @stephenlimb6141
    @stephenlimb6141 Před 2 lety

    Good stuff, straight to the point. Thanks.

  • @availkrishmytube
    @availkrishmytube Před 3 lety

    Great session!

  • @dimimurik3970
    @dimimurik3970 Před 3 lety +1

    Great! Thanx for your effort!

  • @2012oyt
    @2012oyt Před 4 lety +1

    thank you so much!!

  • @meprajwal01
    @meprajwal01 Před 3 lety +1

    Thanks for the video. It's very useful.

  • @UmarShaikh-ck3vt
    @UmarShaikh-ck3vt Před 2 lety +1

    BEST and CLEAN Thanks

  • @kashif3720
    @kashif3720 Před 6 lety +1

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

  • @124estera
    @124estera Před 5 lety +1

    Very good. Thank you

  • @vishalpathode
    @vishalpathode Před 5 lety +1

    Great tutorial

  • @pallavimisra9753
    @pallavimisra9753 Před 3 lety +1

    Thanks for the great content

  • @RohitSingh-ITProfessional

    Awesome - simple and great content

  • @raghuls1469
    @raghuls1469 Před 2 lety

    Really good explanation. It was working perfectly for me.

  • @silviafarfan2523
    @silviafarfan2523 Před 2 lety +1

    Very clear explanation. Thank you

  • @AB-my3hx
    @AB-my3hx Před 3 lety

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

  • @Mahesh-ry9oe
    @Mahesh-ry9oe Před 5 lety +7

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

  • @karthikmk9
    @karthikmk9 Před 6 lety +2

    Good explaination

  • @nitishprasadkushwaha
    @nitishprasadkushwaha Před 2 lety +1

    glad i found this channel

  • @kirlampallimurty5115
    @kirlampallimurty5115 Před 4 lety

    Gr8, Thanks for this.

  • @ambersingh1493
    @ambersingh1493 Před 3 lety +1

    Awesome video bro. Really helpful. Thanks.

  • @abhiroy82
    @abhiroy82 Před 3 lety

    awesome Video !!! thanks dude!

  • @mitalighotgalkar7666
    @mitalighotgalkar7666 Před rokem

    Amazing video!

  • @varunpanji
    @varunpanji Před 4 lety

    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  Před 4 lety +1

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

  • @commonman8540
    @commonman8540 Před rokem +1

    great, very nice explanation

  • @MrYtkrishna
    @MrYtkrishna Před 3 lety +1

    Good and clear explanation..

  • @karthikmk9
    @karthikmk9 Před 6 lety +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

  • @MohammadRasoolShaik
    @MohammadRasoolShaik Před 4 lety

    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?

  • @namankumar2220
    @namankumar2220 Před 5 lety +1

    awesome video...

  • @sfandi1946
    @sfandi1946 Před 3 lety +1

    very good tutorial!

  • @siyedyoussef3202
    @siyedyoussef3202 Před 6 lety +1

    Great vidéo as Always #like

  • @yadd13
    @yadd13 Před rokem

    Lovely explanation 👌🙏🏼

  • @thulasikiran
    @thulasikiran Před 5 lety +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.

  • @carlosjuliopv
    @carlosjuliopv Před 5 lety +1

    Awesome video !! Hello from Colombia

    • @TechPrimers
      @TechPrimers  Před 5 lety

      Hi Carlos. Great to see you.
      Welcome to TechPrimers

  • @rrafaelpaz
    @rrafaelpaz Před 4 lety

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

  • @rakeshroshan829
    @rakeshroshan829 Před 3 lety +1

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

  • @joshione09
    @joshione09 Před 6 lety +2

    So nice vídeo

  • @diogennesthesinope61
    @diogennesthesinope61 Před 2 lety

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

  • @suryasimhadri
    @suryasimhadri Před 2 lety

    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.

  • @HariPrasad-yt4mn
    @HariPrasad-yt4mn Před 3 lety

    You are my tech guru

  • @mahaveerkolekar3862
    @mahaveerkolekar3862 Před 4 lety +1

    Very nice and usefull video

  • @umarulfarooqa4313
    @umarulfarooqa4313 Před 3 lety +2

    Very good.

  • @imedhr1814
    @imedhr1814 Před 5 lety +1

    very nice thnks

  • @karan6551
    @karan6551 Před 3 lety +1

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

  • @amithraju830
    @amithraju830 Před 5 lety

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

  • @akhileshguptaakhi
    @akhileshguptaakhi Před 4 lety +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

  • @na-kh5lg
    @na-kh5lg Před 4 lety

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

  • @vishnumurali522
    @vishnumurali522 Před 5 lety

    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?

  • @fujinafiul6044
    @fujinafiul6044 Před 4 lety +1

    thanx a lot

  • @balsubu1
    @balsubu1 Před 2 lety +1

    very nice...neatly explained

  • @justassubatavicius54
    @justassubatavicius54 Před 6 lety +24

    Sometimes I think that you literally work in the same projects as I do , because everything you publish is useful in my projects. Thank you mister , for doing my junior developer work easier! If you will make video about Jmeter tutorial - you will be God !
    Maybe I didnt understand ,but any ideas why should I use kafka , if I already use Prometheus in my project ? They do same thing , no?

    • @TechPrimers
      @TechPrimers  Před 6 lety +5

      haha. most of the videos i make are learnt out of my own interest. :)
      Prometheus is a TimeSeries database which collects and stores time series data. Kafka is distributed messaging system which can ship all kind of data, right from transactions, logs, time series, etc.

  • @cafeta
    @cafeta Před 6 lety +1

    Excellent tutorial, I fallowed but the only different is I use Kafka inside a Docker container.

    • @rajneeraj8247
      @rajneeraj8247 Před 4 lety

      @cafeta can you please help me with sample code, I m new to kafka and trying to use with docker. Kafka broker and zookeeper are running in docker and I am trying to produce and consume from other docker container.

  • @arunkumar-kd6dq
    @arunkumar-kd6dq Před 4 lety +1

    Thank u

  • @geekgeeks2256
    @geekgeeks2256 Před 6 lety +3

    Really thankful to your videos i somehow started my journey in micro services ...One Query *where will we use kafka in real world projects ? If any of you guys could share the example it will be really helpful* Thank you..

    • @TechPrimers
      @TechPrimers  Před 6 lety +2

      Usually Kafka is used in Big Data space where huge stream of messages need to be processed. It goes well with Spark Streaming and Kafka Streams

    • @geekgeeks2256
      @geekgeeks2256 Před 6 lety

      Thank you Ajay for the instant reply

    • @CarlSaptarshi
      @CarlSaptarshi Před 4 lety +2

      it can also be used for general event driven programming - you may have many microservices in your project, and they may be waiting for some event to be triggered asynchronously. By putting messages onto a kafka topic, the consumer will detect that a message has been put onto that specific topic, and will consume from it immediately, and enable that flow to begin, whilst some other unrelated process continues on as part of that specific flow

  • @balajimanoharan1716
    @balajimanoharan1716 Před 4 lety

    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.

  • @diegoramos27
    @diegoramos27 Před 3 lety

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

  • @nabarunbhowmick1488
    @nabarunbhowmick1488 Před 5 lety +2

    Instead of the config file, we can make use of the properties file by adding two entries in application.properties
    spring.kafka.producer.value-serializer=org.springframework.kafka.support.serializer.JsonSerializer
    spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
    Springboot will take care of the DI

    • @EvgeniiSuvorov
      @EvgeniiSuvorov Před 5 lety

      What if I want to use my own serializer like mapstruct for example?

    • @chenyangwang7232
      @chenyangwang7232 Před 4 lety

      Thank you! You solved my problem!

  • @VijayKumar-qf9rp
    @VijayKumar-qf9rp Před 4 lety

    Thanks You

  • @naveenakuntalabavi3055
    @naveenakuntalabavi3055 Před 2 lety +1

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

    • @TechPrimers
      @TechPrimers  Před 2 lety

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

  • @yhariprasadreddy2949
    @yhariprasadreddy2949 Před 6 lety

    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

  • @laxman20101
    @laxman20101 Před 2 lety

    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()?

  • @SHIVAKUMAR-sg2pp
    @SHIVAKUMAR-sg2pp Před 4 lety

    Can we use json object mapper instead of serialization class?

  • @deepujs
    @deepujs Před 3 lety +1

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

  • @reshmaa6345
    @reshmaa6345 Před 5 lety

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

  • @selvarajb8791
    @selvarajb8791 Před 4 lety

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

  • @midclock
    @midclock Před 3 lety +3

    Nice explanation!
    Now I need to find how to receive a published message (serialized as json) in another spring application.
    What do you think about having a common module between two or more applications, containing the message templates?
    That would be handy, but also dangerous if somebody changes them without checking who is receiving them.

    • @TechPrimers
      @TechPrimers  Před 3 lety +1

      There is a concept of Schema Registry where the message contract is stored. Confluent Kafka provides it.

    • @midclock
      @midclock Před 3 lety

      @@TechPrimers thx

  • @user-wq9vh8xt8d
    @user-wq9vh8xt8d Před 2 lety

    Please, how calls last song in this video?

  • @yuriihizun7183
    @yuriihizun7183 Před 6 lety +1

    Good tutorial, maybe you will make a new video about consuming kafka message with spring boot.

    • @TechPrimers
      @TechPrimers  Před 6 lety

      Yes. uploaded the consumption part now. check out the latest video

    • @yuriihizun7183
      @yuriihizun7183 Před 6 lety +1

      Ooooouu so fast.

  • @NikhilJain08
    @NikhilJain08 Před 2 lety

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

  • @santhoshmittapelly3959

    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 ..

  • @entertainment55
    @entertainment55 Před 4 lety

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

  • @himanshudesai17
    @himanshudesai17 Před 3 lety +1

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