No video

Spring Cloud Stream With Apache Kafka Binder | Example | JavaTechie

This video will guide you How to build highly scalable event-driven microservices connected with shared messaging systems using Kafka Binder
#javatechie #SpringCloud #ApacheKafka #kafkaStream
GitHub:
github.com/Jav...
Blogs:
/ javatechie
Facebook:
/ 919464521471923
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community , you are free to use source code from above mentioned GitHub account

Пікірлер: 158

  • @salmanbaig7746
    @salmanbaig77463 жыл бұрын

    Basant thank you. You are a Genius and a very technical and kind person.

  • @Ani-qd6nm
    @Ani-qd6nm4 жыл бұрын

    Awesome ...Thank you for sharing your precious knowledge with us.

  • @harshverm776
    @harshverm776 Жыл бұрын

    This is really awesome. I just have created similar producer-consumer. Which use to produce data as an object using Kafka which required lots of configuration at both side. With Spring Cloud Stream we have specified almost null configuration.

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Yes exactly

  • @kamalshaik1266
    @kamalshaik12662 жыл бұрын

    what a relief, struggling to understand these, thank you so much , excellent explanation, :-),

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    Thanks Kamal ☺️

  • @sumontapoddar9342
    @sumontapoddar93423 жыл бұрын

    Great tutorial with so well explanation. Thank you for making such kind of tutorial.

  • @hemanthsavithala6548
    @hemanthsavithala65483 жыл бұрын

    At last my doubts Clarified.... Tq a lot

  • @kranthipinninti7316
    @kranthipinninti73162 жыл бұрын

    Simply super, nice videos 👍👌

  • @rahulrahul7441
    @rahulrahul74413 жыл бұрын

    Awesome explanation..thank you 2 question faced in interview for kafka/Rabbit Mq: 1) how to avoid duplicate message to be consumed in consumer? . 2) how to handel if topic is full of messages?

  • @baptiste6436

    @baptiste6436

    2 жыл бұрын

    Did u find a solution to 1 ?

  • @akhileshyaduwanshi6008
    @akhileshyaduwanshi60082 жыл бұрын

    Very helpful tutorial, you are doing great work, keep it up...

  • @ayyappabudihal291
    @ayyappabudihal2912 жыл бұрын

    The content you showcase is amazing and really good to understand thank you sir

  • @user-vu7pq7wu3f
    @user-vu7pq7wu3fАй бұрын

    Excellent Bro..👍

  • @pandalakshmipriya1867
    @pandalakshmipriya18673 жыл бұрын

    Awesome . Very clean explanation. Thank you Bro🙏

  • @aratigavade7962
    @aratigavade79623 жыл бұрын

    Excellent .

  • @saravanakumara5602
    @saravanakumara56022 жыл бұрын

    God Bless You.

  • @mayanksrkumar16
    @mayanksrkumar16 Жыл бұрын

    Very informative. Could you also make a video on data transfer using avro instead of json. Also some use case where multiple input and output topics are involved would be great. Thanks.

  • @JavaGuides
    @JavaGuides4 жыл бұрын

    Quality video tutorial. Just curious to know which software you are using for screen recording and which device you are using for voice recording.

  • @rakeshroshan829
    @rakeshroshan8293 жыл бұрын

    Superb, very easy way explained and good to remember me this concept. please make video on kafka vs rabbitmq and with use case.

  • @abanisahoo5926
    @abanisahoo59264 жыл бұрын

    Excellent explanation as always sir..!

  • @Shaanshah82
    @Shaanshah824 жыл бұрын

    Extremely helpful for beginners, thanks

  • @aidataverse
    @aidataverse2 жыл бұрын

    Awesome

  • @foodgallery5819
    @foodgallery5819 Жыл бұрын

    Thank you :)

  • @Shaanshah82
    @Shaanshah823 жыл бұрын

    nicely explained, very helpful

  • @rupn9633
    @rupn96333 жыл бұрын

    Thank you, I was wondering how spring boot and kafka are related.

  • @nguyenquan4836
    @nguyenquan4836 Жыл бұрын

    Thank you so much 🎉🎉🎉

  • @OmkarShetkar
    @OmkarShetkar4 жыл бұрын

    Clear and concise explanation! Thanks!

  • @raghavendrabhandari6150

    @raghavendrabhandari6150

    3 жыл бұрын

    Yes, its clear and very easy to understand.

  • @OmkarShetkar

    @OmkarShetkar

    3 жыл бұрын

    @@raghavendrabhandari6150 true

  • @prakashdolas4483
    @prakashdolas44834 жыл бұрын

    Well explained.Thank you for this explanation

  • @travelnlov
    @travelnlov4 жыл бұрын

    Very nicely explained. Thank you

  • @dancewithsidhi
    @dancewithsidhi3 жыл бұрын

    You created topic in Kafka, and I belive Kafka is running on some port. How publisher and subscriber is communicating with Kafka server to produce/consume from topic, we did not provided any configuration from producer/consumer side?

  • @StyleTrick
    @StyleTrick3 жыл бұрын

    Thanks for this. It's a shame the @EnableBinding is already deprecated and there is no documentation on referring to "@deprecated as of 3.1 in favor of functional programming model". Doesn't seem to be many reliable resources to go from this.

  • @baptiste6436

    @baptiste6436

    2 жыл бұрын

    did u find out how to replace it?

  • @meherganta724
    @meherganta7244 жыл бұрын

    awesome broo.. waiting for this tutorial.. clear explanation

  • @ruchibhagwat1580
    @ruchibhagwat15803 жыл бұрын

    @Enablebinding is deprecated now.What is the alternative for this?I want to build a kafka consumer in spring boot.What are the options?

  • @ambersingh1493

    @ambersingh1493

    3 жыл бұрын

    Same query.

  • @praqul
    @praqul3 жыл бұрын

    Great video.. Thank you !!!

  • @ifesinachieze9360
    @ifesinachieze93603 жыл бұрын

    Thank you. This is quite detailed.

  • @ifesinachieze9360

    @ifesinachieze9360

    3 жыл бұрын

    Hi @Java Techie, I have a specific question. Lets assume that for some reason, your consumer application was down. How would you know that the message sent through the message bus (kafka) has not been consumed and how do you mitigate around that?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    It doesn't matter whether your consumer is up or not once message received to topic , whenever your consumer will listen to it immediately he will receive events

  • @ifesinachieze9360

    @ifesinachieze9360

    3 жыл бұрын

    @@Javatechie, thank you. I will check this out.

  • @kumudhaglory2680
    @kumudhaglory26803 жыл бұрын

    kindly do a video on spring cloud streams with supplier, function and consumer

  • @tejassontakke8382
    @tejassontakke83822 жыл бұрын

    Hello @Basant, Thanks for posting such an informative video in great detail in a simple way. Just one small doubt, When the consumer was down initially, your first request from producer should have parked to the topic (18:39), but was not reflected when the consumer was up (18:55). Did we lose the message published initially, consumer should automatically have picked up the message when started which is parked at 18:39? Please guide.

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    Consumer should automatically pick-up when back to online buddy

  • @jaykumarjaviya1941
    @jaykumarjaviya19414 жыл бұрын

    Hi Basant, I like to watch your all youtube videos. I have a recommendation for you and it will be quick and easy - Can you please dockerize these projects? (current video) producer consumer of apache kafka with spring cloud on DOCKER?? On Windows OS(please)

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Ok I will do this

  • @ashaseetharamu429
    @ashaseetharamu4293 жыл бұрын

    Hi Java Techie, your all videos are worth trying. Could you please make a video on recent spring cloud stream (3.1.3) with Kafka because certain annotations which you have used like EnableBinding, StreamListener are deprecated .

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Hi Asha , definitely I will try with update one

  • @subhrajeetpadhy

    @subhrajeetpadhy

    2 жыл бұрын

    @@Javatechie Dear, Thanks a lot for amazing kafka videos, it would be too good if you make a video as per above request.

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    @@subhrajeetpadhy sure buddy will do this

  • @rohitmanohar2733
    @rohitmanohar273310 ай бұрын

    Hi @EnableBinding is deprecated , can u please let us know what is the alternative we can use.

  • @mthokozisimhlanga8133
    @mthokozisimhlanga81332 жыл бұрын

    Amazing and very helpful, thanks so much... it's just superb. I would like to achieve exactly the samething but using docker in stead of running localy. Do you have a tutorial that explores something of that nature?

  • @Javatechie

    @Javatechie

    Жыл бұрын

    using docker i haven't tried

  • @prabhakarkanti9809
    @prabhakarkanti98094 жыл бұрын

    Thanks for accepting my request

  • @sparrownature9189
    @sparrownature91892 жыл бұрын

    Very useful videos, Where to add kafka properties.

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    In application.yml

  • @shivakumarn7963
    @shivakumarn79632 жыл бұрын

    Hi, You might have forgot to link Apache kafka link in Description.

  • @22890074
    @228900743 жыл бұрын

    Nice video . i have one question here. if I need to use more than one object to consume. how can i do it? .

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Publish list of object in source and consume list from sink

  • @krishnendughosh1212
    @krishnendughosh12124 жыл бұрын

    Very Informative . Can you show how to configure multiple bindings is a same service .

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Yes will definitely try

  • @hootanv1074

    @hootanv1074

    4 жыл бұрын

    @@Javatechie Can you also show a case where a Sink/Consumer can also publish to another topic after it is done processing? Great video!

  • @nishantkumar3516
    @nishantkumar35162 жыл бұрын

    Sir, pieces other than the binder looks tightly coupled. In a real time scenario, we expect innumerous back and forth interactions between the microservices. Configuring one way messaging channeling seems quite expensive from development standpoint. Could you please suggest an alternative solution offering a balanced approach?

  • @arunkrish8399
    @arunkrish83993 жыл бұрын

    If we don't add source in binding in publisher whether consumer will not work ?? or if message already published by some one else and if I'm writing consumer with sink binding will i able to receive the message ??

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Your first question how consumer will consume the message if you won't publish it Source -- publisher Sink -- Consumer

  • @vishalchawla1750
    @vishalchawla17503 жыл бұрын

    Hello java Techie, Can you give explain also if kakfa is on other server and producer and consumer are on other server, I think we need to define configuration somewhere then so that prodcer and consumer can send message through that server

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Yes both are running in different . We could separate with 2 different application to understand it better way

  • @saurabhbehl398
    @saurabhbehl3984 жыл бұрын

    Hi. Is it possible to show an example with manmual acknowledge functionality along with some other custom configurations just like Kafka consumer. I am not able to find any refrence.

  • @jayeshpachpute7113
    @jayeshpachpute7113 Жыл бұрын

    Hi, In my project I am using spring cloud stream binder and azure event hub as broker. Everything works well for means able to publish the event. But when I tried to load test the producer using Jmeter, let's say for 1000 threads,app publishes some random number of events to event hub and after that it is throwing Emissions exception with message like doNext or doError must be signaled serially. Any idea on this.

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Haven't tried with cloud messing queue Budd will check and update

  • @joshipratik3381
    @joshipratik33812 ай бұрын

    How to configure consumer service for multiple topics and group?

  • @manishdadheech8440
    @manishdadheech8440 Жыл бұрын

    We didn't mentioned here the kafka IP and host details, that also done required with the binder?

  • @Javatechie

    @Javatechie

    Жыл бұрын

    It's not required that's what the beauty of spring cloud stream. Based on your binder spring cloud is smart enough to identify what messaging channel you are using

  • @manishdadheech8440

    @manishdadheech8440

    Жыл бұрын

    I really respect you sir. You always reply on comments thanks. What if Kafka server is on different server and application on different?

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Then you need to configure bootstrap server details buddy but again that is one go solution

  • @jincyv7386
    @jincyv73862 жыл бұрын

    Hi @Basant Nice presentation and I am trying to do the same .But consumer is not listening to the message .I haven't added the iml file .Is there any reason not printing statement in those method

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    Sink annotation is there ?

  • @jincyv7386

    @jincyv7386

    2 жыл бұрын

    @@Javatechie yes .streanlistener(Sink.input) and enabled bindings for class and annotated with component.not showing errors but not entering to that method

  • @kumarpatil2815
    @kumarpatil28153 жыл бұрын

    What if we want to publish data on multiple topic from 1 microservice to multiple micro services from multiple controller, can we deploy kafka server on kubernates pods. Could you please explain the same using GCP pub/sub with multiple topics. And also how can we assured that the subscriber had execute for that payload, does we get any acknowledge id ? and can we see the unacknowledges messages in kafka server which are not passed to subscriber(consumer) ? And with the GCP i have faced the problem using PUB/SUB as until acknowledge come its executing the same message and in my code due to some error its never returning the ack due that the same message executed continuously please help me as i am not configure the pub/sub in my company appreciate if we can discuss over the google meets, Thanks

  • @jeromestephen5616
    @jeromestephen56163 жыл бұрын

    please post the producer error handling methodologies with DLQ

  • @rexsam3134
    @rexsam31344 жыл бұрын

    Hope this is same for STS? Instead of yml we can use application.properties as I am not clear why you require both files

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Yes we can use only one no issues

  • @ambersingh1493
    @ambersingh14933 жыл бұрын

    Getting this error when running producer while passing data through postman : Failed to convert message: 'GenericMessage [payload=com.creator.cloud.stream.api.model.....Can you help as there is a change in spring version I guess?

  • @AbhimanyuKumar-wc1ws
    @AbhimanyuKumar-wc1ws4 жыл бұрын

    Thanks..Can you share video how can configure multiple brokers...

  • @SumitKumar-lj3nd
    @SumitKumar-lj3nd2 жыл бұрын

    Where do we specify the kafka server details (host,port) this needs to connect

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    Not required spring cloud will identify it based on binder you added in your pom

  • @parvathi2724
    @parvathi27242 жыл бұрын

    Hi Nice explanation, I am new to Spring cloud stream concept. I have one doubt i.e. can we use same input chaneel with more than one streamLinsters. Please clarify.

  • @samirshirodkarr56

    @samirshirodkarr56

    Жыл бұрын

    You can use but one of the running application will read the message

  • @abhishekraj-kf3zc
    @abhishekraj-kf3zc3 жыл бұрын

    how to configure kafka..if it is an aws kafka(MSK)..do we need to use msk url in bootstrap_server_config ?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Hi Abhishek am not sure , I believe we should use AWS provide messing queue like sqs

  • @lalitmohan1530
    @lalitmohan15304 жыл бұрын

    Is there any specific reason we have to create application.yml while we already have application.properties? Can't we specify the bindings inside application.properties ?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    It's upto you ☺️ .I feel good to use application.yml

  • @vinodkumarRavula
    @vinodkumarRavula Жыл бұрын

    Hi Basant, I have a question. On How do we get the data from a topic in a consumer application?

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Usually we should get in the form of JSON string

  • @vinodkumarRavula

    @vinodkumarRavula

    Жыл бұрын

    @@Javatechie ok. how to read the data in the topic and respond/provide it in a REST API. ?

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Please check out my Kafka producer and consumer example

  • @debkr
    @debkr Жыл бұрын

    `@StreamListener` is deprecated now.

  • @raveendrareddy8900
    @raveendrareddy89004 жыл бұрын

    Thanks for the video, if possible make an example with RabbitMq also, so that we can differentiate easily

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Will do

  • @raveendrareddy8900

    @raveendrareddy8900

    4 жыл бұрын

    @@Javatechie thank you bro

  • @aayushiagarwal8063
    @aayushiagarwal80633 жыл бұрын

    If we have 2 producer in one service and 2 consumer in another service thenhow will it work

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    You need to define those info in application.yml bindings section

  • @aayushiagarwal8063

    @aayushiagarwal8063

    3 жыл бұрын

    @@Javatechie Thanks for your answer but can you share example.

  • @asmatsoomro7675
    @asmatsoomro76754 жыл бұрын

    If you create a seperate class for publisher instead of putting publisher logic in main, do you have to annotate the @EnableBinding(Source.class) on main class or the publisher class?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    You need to add both Source and sink in @EnableBinding

  • @sandythandu
    @sandythandu3 жыл бұрын

    Can we define multiple topics in the yml file. If we can then How can we choose specific topic with channel.

  • @VaibhavBhanawatvaibhan
    @VaibhavBhanawatvaibhan2 жыл бұрын

    any reference for remote partitioning using Spring cloud stream ?

  • @ss-ih7zh
    @ss-ih7zh3 жыл бұрын

    Bro you used spring cloud stream but not Kstream. Isn't it necessary to implement kstream while working with cloud stream. Streaming is done using Streams right ?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Hi Satya , May I know purpose of using kstream here ?

  • @ss-ih7zh

    @ss-ih7zh

    3 жыл бұрын

    I'm new to kafka .i implemented your video but when i started to read kafka streams everything code is done creating by using kstream.that why i was asking

  • @cinemaworld7931
    @cinemaworld79313 жыл бұрын

    Hi bro .. m trying to follow your code But here .. @EnableBinding has been deprecated .. so is there any alternative way ..pls suggest

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    I didn't check update version

  • @aniketchavan4722
    @aniketchavan47224 жыл бұрын

    If we have more than one controller in publishers and more than one consumer method how it will execute it's Respective consumer method

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    In consumer we are using stream listener right so you need to specify channel name

  • @anantababa
    @anantababa4 жыл бұрын

    nice one . can we configure multiple topic channel in consumer side ?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Yes we can

  • @anantababa

    @anantababa

    4 жыл бұрын

    @@Javatechie can you please give some sample code for this . i have some requirements..

  • @anantababa

    @anantababa

    4 жыл бұрын

    @@Javatechie can you please give your contact details.

  • @raveendrareddy8900
    @raveendrareddy89004 жыл бұрын

    If possible make video on kafka async produce and consume, it helps us alot.

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Definitely I will check this out

  • @raveendrareddy8900

    @raveendrareddy8900

    4 жыл бұрын

    @@Javatechie thank you Bro

  • @VasillaRobocraft
    @VasillaRobocraft11 ай бұрын

    Kinda weird to see using Lombok without @Log or smth when u need logger

  • @Javatechie

    @Javatechie

    11 ай бұрын

    @Sl4j is enough

  • @weitanglau162
    @weitanglau1623 жыл бұрын

    Can you make a video to integrate kafka with spring boot microservice architecture on kubernetes?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    I am not much aware about kunernates

  • @weitanglau162

    @weitanglau162

    3 жыл бұрын

    @@Javatechie No problem! Please keep making great videos on Java Concepts! :)

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Yes Lau I will do

  • @aniketchavan4722
    @aniketchavan47224 жыл бұрын

    Please video on rabitmq with UI, thanks

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Will do 👍

  • @rahulmakwana663
    @rahulmakwana6633 жыл бұрын

    Where do we add broker details which is running remotely.

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Same in application.yml

  • @thannasip8001
    @thannasip80014 жыл бұрын

    Tried this IDE not working with spring boot but for your it's working like anything,is there any video for this?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    It will work add spring assistant plugin on it .

  • @thannasip8001

    @thannasip8001

    4 жыл бұрын

    @@Javatechie tried this way bro if failed for recently IDE version 2020.2 think,working version please?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    I was using 2019.3

  • @thannasip8001

    @thannasip8001

    4 жыл бұрын

    @@Javatechie thanks bro,installed same version and spring assistant plugin as well am getting spring initializr option but again autocomplete not coming for application.yml

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Can we connect in google meet javatechie4u@gmail.com . It looks Some configuration problem

  • @138OM
    @138OM3 жыл бұрын

    whrere you are specifying broker details of kafka?

  • @krishanu3200
    @krishanu32004 жыл бұрын

    Where do we mention the kafka server running ip and port?

  • @anildolls
    @anildolls4 жыл бұрын

    Is github link for this application accessible? I am not able to access it. Can someone share the working github link for this application

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Yes it's public repository everyone can access . Login to GitHub then try to access it

  • @yogischannel9972
    @yogischannel99724 жыл бұрын

    Sir can you tell how to retrieve the data from to two different services at a time please.

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Hi Yogesh , Are you trying this using rest API call ?

  • @yogischannel9972

    @yogischannel9972

    4 жыл бұрын

    @@Javatechie yes I am trying rest api

  • @johnvick8861
    @johnvick8861 Жыл бұрын

    How can we use db

  • @samssunny16
    @samssunny162 жыл бұрын

    Can we bind source and sink class in the same application?

  • @samssunny16

    @samssunny16

    2 жыл бұрын

    I have one more doubt like how to configure multiple topics in producer and consumer

  • @yravi37
    @yravi373 жыл бұрын

    How to configure more than one destination topics

  • @sharma2029
    @sharma20294 жыл бұрын

    Could you explain what is cloud pubsub?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    I never tried this, will check and let you know

  • @gennadyshevchenko7940
    @gennadyshevchenko79404 жыл бұрын

    are you working only with java?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Yes working on Java

  • @parvathi2724
    @parvathi27242 жыл бұрын

    Please help me on this , I have 2 methods with separate api call and both are consuming the same topic. when I publish data, only first method is calling, 2nd is not calling. what I need to do.- Sample code: @StreamListener("inputchannel") public void consumeMessage(String message){} @StreamListener("inputchannel") public void consumeMessage2(String message){}

  • @AshutoshMohanty07
    @AshutoshMohanty073 жыл бұрын

    Awesome

Келесі