Тёмный

Spring Boot with Spring Kafka Producer Example | Tech Primers 

Tech Primers
Подписаться 135 тыс.
Просмотров 286 тыс.
50% 1

Опубликовано:

 

31 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 183   
@manojmajumdar3815
@manojmajumdar3815 4 года назад
Wasted a whole day reading a dzone article regarding kafka, this tutorial made my day, beautifully explained!!!!
@TechPrimers
@TechPrimers 4 года назад
Glad it was helpful!
@VANTYCSolutions
@VANTYCSolutions 4 года назад
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
@utbhargav
@utbhargav 2 года назад
Watched so many Vidoes on Kafka to understand but finally end up with this video for kafka understanding.. Thank you for serving IT community.
@BaluKompalli
@BaluKompalli 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.
@cicciopasticcio8469
@cicciopasticcio8469 3 года назад
Perfect video to start playing with Kafka & spring boot
@JohnnyNilsson83
@JohnnyNilsson83 3 года назад
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.
@dac5961
@dac5961 3 года назад
It is very useful video; I learned about Kafka from this video tutorial. Thank you so much and god bless you.
@silviafarfan2523
@silviafarfan2523 2 года назад
Very clear explanation. Thank you
@adilkhanabdrashov7507
@adilkhanabdrashov7507 3 года назад
Amazing channel!!! ONE OF THE BEST I've SEEN!!! THANK YOU SO MUCH! WITH LOVE & RESPECT FROM KAZAKHSTAN!!!!
@thulasikiran
@thulasikiran 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.
@AbhishekSingh-xx5tx
@AbhishekSingh-xx5tx 5 лет назад
yes sir, plz do that same.
@mohammadzeeshan7074
@mohammadzeeshan7074 5 лет назад
Do it do it do it
@NgocBich-tunmiumeo
@NgocBich-tunmiumeo 3 года назад
Very straightforward explanation. Thank you so much. It's very useful for me!
@commonman8540
@commonman8540 Год назад
great, very nice explanation
@cleyxds
@cleyxds 3 года назад
thats exactly what i was looking for, thank you so much!
@UmarShaikh-ck3vt
@UmarShaikh-ck3vt 2 года назад
BEST and CLEAN Thanks
@raghuls1469
@raghuls1469 2 года назад
Really good explanation. It was working perfectly for me.
@RohitSingh-ITProfessional
@RohitSingh-ITProfessional 2 года назад
Awesome - simple and great content
@naveenakuntalabavi3055
@naveenakuntalabavi3055 2 года назад
Great and simple explanation if possible please share a real time use case of kafka in springboot &microservices
@TechPrimers
@TechPrimers 2 года назад
It's shared already naveena Take a look at my video on Kafka Streams
@spicy2602
@spicy2602 3 года назад
Short and sweet tutorial. Thanks 😊
@Srini8174
@Srini8174 4 года назад
Thank you for clear explanation along with example
@nagarajanerode
@nagarajanerode 4 года назад
Very simple and straight forward explanation .... Thanks...
@FunnyGamerNo1
@FunnyGamerNo1 2 года назад
glad i found this channel
@balsubu1
@balsubu1 2 года назад
very nice...neatly explained
@TechPrimers
@TechPrimers 2 года назад
Glad you liked it
@ambersingh1493
@ambersingh1493 3 года назад
Awesome video bro. Really helpful. Thanks.
@yadd13
@yadd13 Год назад
Lovely explanation 👌🙏🏼
@bijoysahu6715
@bijoysahu6715 5 лет назад
Great explained.. please post more videos on Kafka. Thank you.
@HariPrasad-yt4mn
@HariPrasad-yt4mn 3 года назад
You are my tech guru
@SushilKumarBhaskar
@SushilKumarBhaskar 5 лет назад
One of the great tutorial on Kafka clear and concise
@MrYtkrishna
@MrYtkrishna 4 года назад
Good and clear explanation..
@mahaveerkolekar3862
@mahaveerkolekar3862 4 года назад
Very nice and usefull video
@jayanareshk7566
@jayanareshk7566 5 лет назад
Thanks for simple and clear explanation
@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 года назад
You can leverage the speed control in RU-vid to slow down the video by 0.5x or 0.25x 🤓
@deepujs
@deepujs 3 года назад
@Bean above producerFactory method is not required. right? as it is getting called from the kafkaTemplate method which has @Bean
@amebaos
@amebaos 4 года назад
Thanks. It worked like charm!!!!
@sudarsanedagotti4525
@sudarsanedagotti4525 5 лет назад
Thank you so much.. it is very simple and I made it in 30 mins using this tutorial
@SivaPolamarasetti
@SivaPolamarasetti 3 года назад
Thank you for your video I want some clarification on Kafka is it suitable for financial services like banking sector
@TechPrimers
@TechPrimers 3 года назад
If you use necessary security measures for authentication, authorization, data encryption/masking, storge, etc., then you can use it.
@TechPrimers
@TechPrimers 3 года назад
Here is a case study from Capital One bank www.confluent.io/kafka-summit-sf18/building-an-enterprise-streaming-platform-capital-one/
@SivaPolamarasetti
@SivaPolamarasetti 3 года назад
@@TechPrimers thank you for your reply
@abhiroy82
@abhiroy82 3 года назад
awesome Video !!! thanks dude!
@MusicalMitali
@MusicalMitali 2 года назад
Amazing video!
@meprajwal01
@meprajwal01 4 года назад
Thanks for the video. It's very useful.
@bilalhayat1
@bilalhayat1 4 года назад
Simple and good explanation.
@geekgeeks2256
@geekgeeks2256 6 лет назад
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 6 лет назад
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 6 лет назад
Thank you Ajay for the instant reply
@CarlSaptarshi
@CarlSaptarshi 5 лет назад
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
@stephenlimb6141
@stephenlimb6141 2 года назад
Good stuff, straight to the point. Thanks.
@rakeshroshan829
@rakeshroshan829 4 года назад
Hi, can you also cover the Sync and Async producer send options with Future and Callbacks?
@sfandi1946
@sfandi1946 3 года назад
very good tutorial!
@balamurali7214
@balamurali7214 4 года назад
Awesome explanation. Able to understand the concepts clearly. Thanks.
@kashif3720
@kashif3720 6 лет назад
very nice tutorial. request one thing to add is kafka test
@Mahesh-ry9oe
@Mahesh-ry9oe 5 лет назад
We can also configure in application.properties instead of configuration class.
@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?
@diogennesthesinope61
@diogennesthesinope61 3 года назад
Awesome xplanation, thnx! Could do some for springboot, reactive webflux.
@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?
@availkrishmytube
@availkrishmytube 3 года назад
Great session!
@nabarunbhowmick1488
@nabarunbhowmick1488 6 лет назад
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 5 лет назад
What if I want to use my own serializer like mapstruct for example?
@chenyangwang7232
@chenyangwang7232 5 лет назад
Thank you! You solved my problem!
@umarulfarooqa4313
@umarulfarooqa4313 3 года назад
Very good.
@karthikmk9
@karthikmk9 6 лет назад
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
@diegoramos27
@diegoramos27 4 года назад
super good and straightforward, only question is why are you using BOOTSTRAP_SERVER_CONFIG at port 9092 if default port is 2181? thanks
@pallavimisra9753
@pallavimisra9753 3 года назад
Thanks for the great content
@jhonceenaskt
@jhonceenaskt 5 лет назад
Thank man, simple but detailed informative, keep it up, wish u all the best...
@dimimurik3970
@dimimurik3970 3 года назад
Great! Thanx for your effort!
@davidemm841
@davidemm841 5 лет назад
Thanks for this video. Simple and useful. it was very helpful!
@rajkishorekumar
@rajkishorekumar 6 лет назад
Thanks very much for this video.. Simple and effective
@carlosjuliopv
@carlosjuliopv 5 лет назад
Awesome video !! Hello from Colombia
@TechPrimers
@TechPrimers 5 лет назад
Hi Carlos. Great to see you. Welcome to TechPrimers
@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.
@karan6551
@karan6551 3 года назад
Awesome ❤️❤️❤️🔥❤️🔥❤️❤️❤️❤️
@sumeshsuseelan2954
@sumeshsuseelan2954 4 года назад
Thank you so much, bro. This video helped me a lot :)
@himanshudesai17
@himanshudesai17 3 года назад
What if Kafka server down and we are pushing data how to handle this situation.
@vishnumurali522
@vishnumurali522 5 лет назад
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?
@SHIVAKUMAR-sg2pp
@SHIVAKUMAR-sg2pp 4 года назад
Can we use json object mapper instead of serialization class?
@kaikeventura3893
@kaikeventura3893 4 года назад
Very good! Thank you friend! 🇧🇷
@124estera
@124estera 5 лет назад
Very good. Thank you
@ChaitanyaHegde2012
@ChaitanyaHegde2012 5 лет назад
Nice video. Can you please tell me why do we need to start consumer when we are creating a producer. ?
@TechPrimers
@TechPrimers 5 лет назад
That’s just for demo
@amithraju830
@amithraju830 5 лет назад
Can make a video on rebalancing and how to handle the rebalance at the consumer end.
@namankumar2220
@namankumar2220 5 лет назад
awesome video...
@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 ..
@suryasimhadri
@suryasimhadri 3 года назад
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.
@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.
@AryanVenkatOfficial
@AryanVenkatOfficial 6 лет назад
Good work guys!
@laxman20101
@laxman20101 3 года назад
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()?
@cafeta
@cafeta 6 лет назад
Excellent tutorial, I fallowed but the only different is I use Kafka inside a Docker container.
@rajneeraj8247
@rajneeraj8247 5 лет назад
@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.
@karthikmk9
@karthikmk9 6 лет назад
Good explaination
@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 ?
@anil2009
@anil2009 4 года назад
Sir please mention order of videos . for own learners it's too hard to follow the playlist
@reshmaa6345
@reshmaa6345 6 лет назад
is there any examples available where Kafka is implemented using a service??
@vishalpathode
@vishalpathode 5 лет назад
Great tutorial
@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?
@TeJa-fp5ii
@TeJa-fp5ii 4 года назад
is there any video to learn
@Fred_Klingon
@Fred_Klingon 4 года назад
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 4 года назад
There is a concept of Schema Registry where the message contract is stored. Confluent Kafka provides it.
@Fred_Klingon
@Fred_Klingon 4 года назад
@@TechPrimers thx
@akhileshguptaakhi
@akhileshguptaakhi 4 года назад
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
@imedhr1814
@imedhr1814 5 лет назад
very nice thnks
@fujinafiul6044
@fujinafiul6044 4 года назад
thanx a lot
@Shiva-zy7jq
@Shiva-zy7jq 4 года назад
How did the Spring boot initially connected to Kafka without mentioning anything?
@yuriihizun7183
@yuriihizun7183 6 лет назад
Good tutorial, maybe you will make a new video about consuming kafka message with spring boot.
@TechPrimers
@TechPrimers 6 лет назад
Yes. uploaded the consumption part now. check out the latest video
@yuriihizun7183
@yuriihizun7183 6 лет назад
Ooooouu so fast.
@kommesreelatha473
@kommesreelatha473 2 года назад
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.
@2012oyt
@2012oyt 4 года назад
thank you so much!!
@SameeraSenarathna
@SameeraSenarathna 5 лет назад
Thank you for simple and complete explanation. :-)
@GaneshGane-sl1fi
@GaneshGane-sl1fi 3 года назад
from localhost im not able to publish my message what can I do?
@kirityrapuru
@kirityrapuru 5 лет назад
Great. Thanks for your work, as always.
@aadhikari2807
@aadhikari2807 6 лет назад
Kudos for the effort man. I have a question. Why are you using spring boot 1.5? A lot of things have changed in spring boot 2.0 and even within various versions of 2.0. It would be really great if you made your videos with the latest release. That's good for viewers as well, as they don't have to go and find why something doesn't work with versions that they are using.
@TechPrimers
@TechPrimers 6 лет назад
Yes Ashish. Still enterprise firms haven't moved to Spring Boot 2.0 I will be starting Spring Boot 2.0 in sometime once I cover the major libraries in Spring.
@rekicool2273
@rekicool2273 6 лет назад
浅显易懂,非常感谢!!!
@NikhilJain08
@NikhilJain08 2 года назад
How to work with Kafka on WIndows? It keep on throwing file access denied error
@VijayKumar-qf9rp
@VijayKumar-qf9rp 4 года назад
Thanks You
@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
Далее
🤍ПОЮ для ВАС ВЖИВУЮ🖤
3:04:40
Просмотров 1,3 млн
Apache Kafka Crash Course
1:18:06
Просмотров 433 тыс.
What are WebSockets | How is it different from HTTP?
15:42
Kafka Tutorial - Spring Boot Microservices
51:29
Просмотров 433 тыс.