Kafka Implementation with Producer and Consumer example in Spring boot | tutorial | Code Decode

preview_player
Показать описание
In this video of kafka implementation with producer and consumer example by code decode we have explained

Udemy Course of Code Decode on Microservice k8s AWS CICD link:

Course Description Video :

Commands to start Zookeeper and Kafka :

Kafka implementation with producer and consumer is very important topic with interview point of view.

What is Kafka
Apache Kafka is publish-subscribe based fault tolerant messaging system. It is fast, scalable and distributed by design.

It was initially thought of as a message queue and open-sourced by LinkedIn in 2011. Its community evolved Kafka to provide key capabilities:
Publish and Subscribe to streams of records, like a message queue.
Storage system so messages can be consumed asynchronously. Kafka writes data to a scalable disk structure and replicates for fault-tolerance. Producers can wait for write acknowledgments.
Stream processing with Kafka Streams API, enables complex aggregations or joins of input streams onto an output stream of processed data.

Traditional messaging models are queue and publish-subscribe. In a queue, each record goes to one consumer. In publish-subscribe, the record is received by all consumers.

Pros of Kafka
Loose coupling — Neither service knows about each other regarding data update matters.

Durability — Guarantees that the message will be delivered even if the consumer service is down. Whenever the consumer gets up again, all messages will be there.

Scalability — Since the messages get stored in a bucket, there is no need to wait for responses. We create asynchronous communication between all services.

Flexibility — The sender of a message has no idea who is going to consume it. Meaning you can easily add new consumers (new functionality) with less work.

Cons of Kafka
Semantics — The developer needs to have a deep understanding of the message flow as its strict requirements. Complex fallback approaches may take place.

Message Visibility — You must track all those messages to allow you to debug whenever a problem occurs. Correlation IDs may be an option.

Subscriber and Follow Code Decode

#kafka #codedecode #kakfainterviewquestions
Рекомендации по теме
Комментарии
Автор

Thankyou so so so much for this. I saw this video just before my interview and cracked the interview. Kafka was asked for 20 minutes. Really, thanks a lot. Got a hike of 160 percent . Interviewer was so impressed by the answers. Thank you once again. Really appreciate it. Please never stop these.

kanishkkumar
Автор

Thanks for the implementation. I have done synchronous microservices till now. It's totally new concept to learn asynchronous also. 🧑‍💻 Thank you so much. And please continue what ever is important these days and in coming future as a java developer. 🤗 TQ for the videos

johnnybreathe
Автор

Thanks for simplifying everything at one place.
One day you must go famous for your videos in your playlist of your channel.

GauravSharma-upgs
Автор

The best video beginner friendly video on kafka + spring boot !

fakruu
Автор

Simple, Crisp and to the point thank you for this content.

nitinvnk
Автор

Thanks you so much for all of your videos, The way you explain, every concept becomes very easy to understand.

ankitgiri
Автор

This was very helping in completing my assignments. Looking forward for more basic video. Thanks much.

ezjcuzf
Автор

Thank you so much for this series of videos. I feel so grateful for it. This is so useful. You're really imparting great knowledge in people!

joshinim.n
Автор

you are best among all you tuber channels tq madam

ithisrinu
Автор

Extreme Helpful and helped me to give a valuable KT -session to all my colleagues and make a worthful presentation of it . Thanks a lot mam for boosting Confidence .😇

SampritiChowdhury-mm
Автор

Very nice demo for getting started with Kafka, thank you

aman_deep
Автор

Thanks for up to the point explanation. Please continue this series to for explanation of individual components.

pranjalsingh
Автор

I didn't went through this video bcoz your videos always rockzz I will go through all your video in a few days.

All the best 👍

kasperamkumar
Автор

Wow! Awesome. This can't be explained any better, this can't be explained easier.

PranitKothari
Автор

It's very good and way of telling so .. easy to understand.

sreeramsarath
Автор

Great video...loved the way you explained .... Please make a series on Event-Driven Microservices concepts also. Thank you in Advance.

sheiksahil
Автор

very simplified and working poc on kafka,
Thank you so much.
In my case i struggled while executing the command @ 12.06 minutes
error: The input line is too long. The syntax of the command is incorrect.
Solution: I have renamed the folder to kafka and moved that to D drive directly. worked for me.
Might help others.

ajitpeshane
Автор

It's my humble request, please make a playlist for Apache Kafka, so that we can go through each video one by one. It will be very easy for every one.
And again you have done a fantastic job. Thank you so much.

chetankhandave
Автор

Loved the explanantion.. clear and crisp. Thank you :)

PankhuriSinghChauhan-vrse
Автор

Thank u so much for uploading one more kafka video

tanveersyed