What is Kafka and How does it work?

  Рет қаралды 138,303

Hussein Nasser

Hussein Nasser

Күн бұрын

In this video I will explain what is Apache Kafka, how does it work and the main components of Kafka such as The broker, connection, Producer, Consumer, Topics, Partitions and Consumer group.
Chapters
0:00 Intro
0:10 Broker
1:10 Connection
2:00 Topics
2:55 Kafka Producer
4:20 Kafka Consumer
5:40 Kafka Partitions
9:30 Pub/Sub vs Queue
10:20 Consumer Group
🏭 Software Architecture Videos
• Software Architecture
💾 Database Engineering Videos
• Database Engineering
🛰 Network Engineering Videos
• Network Engineering
🏰 Load Balancing and Proxies Videos
• Proxies
🐘 Postgres Videos
• PostgresSQL
🚢Docker
• Docker
🧮 Programming Pattern Videos
• Programming Patterns
🛡 Web Security Videos
• Web Security
🦠 HTTP Videos
• HTTP
🐍 Python Videos
• Python by Example
Stay Awesome,
Hussein

Пікірлер: 90
@hnasr
@hnasr 2 жыл бұрын
Learn the fundamentals of database engineering grab my udemy course database.husseinnasser.com (link redirects to udemy with coupon applies)
@Bruh-jw2ze
@Bruh-jw2ze 3 жыл бұрын
Bro I literally went through entire documentation But this solved the consumer group concept in 5 mins 🙌
@k.l7111
@k.l7111 3 жыл бұрын
The explanation of consumer group to achieve queue and pubsub is gold. Thank you.
@moeyali123
@moeyali123 Ай бұрын
Great video, entertaining, simple and educational at the same time. Subscribed and liked
@mahdibentahar9908
@mahdibentahar9908 3 жыл бұрын
Lolll i Like the Jordan Peterson bit
@ayoolafakoya9841
@ayoolafakoya9841 3 жыл бұрын
Wish someone talks about Machine learning like you do with backend engineering. You are awesome.
@JinayShah
@JinayShah 2 жыл бұрын
Checkout Srikanth Verma
@user-im9qy4kw6h
@user-im9qy4kw6h 9 ай бұрын
Hussein is hands down the best at explaining complex topics. I love the light-hearted approach - hussein always FTW!
@FUTETrends
@FUTETrends 4 жыл бұрын
Wonderdul info Video about Kafka n its components Thanks Hussein
@amospan14
@amospan14 Жыл бұрын
8:05 Absolutely love that Jordan Peterson reference about how life is suffering. That was awesome! And likely Jordan would add, the antidote to that is voluntarily confronting our own suffering will begin to cure it. Thank you for this Kafka educational video! I very much appreciate your teaching style! =)
@moeyali123
@moeyali123 Ай бұрын
data pipelines are suffering
@Saurabhandsonu1994
@Saurabhandsonu1994 4 жыл бұрын
This is amazing content! The one spoof in middle was pretty cool!
@section9999
@section9999 3 жыл бұрын
Bro, you and Gaurav Sen are my two new favorite youtubers. Free high quality content. Awesome stuff! :D
@hnasr
@hnasr 3 жыл бұрын
DataSurgeon 369 Thank you! I love Gaurav content he is so passionate with his work
@section9999
@section9999 3 жыл бұрын
@@hnasr Yeah definitely, and he's pretty funny. That makes it a lot easier to say engaged.
@python2448
@python2448 2 жыл бұрын
Very quick and deep explanation. You made it very interesting.
@dengzhonghan5125
@dengzhonghan5125 3 жыл бұрын
This 15 mins video is better than a 2-hour lecture from my professor.
@Bruh-jw2ze
@Bruh-jw2ze 3 жыл бұрын
*7 min video (at 2x)
@TravisTennies
@TravisTennies Ай бұрын
Yeah. The idiot jobs that REQUIRE a degree... they're idiots and you don't want to work for fools. Smart people learn from any/every thing possible, and better than what schools offer.
@vnd2489
@vnd2489 7 ай бұрын
Wowww, your explanation is funny but easy to understand the concept. Many thanks.
@romantsyupryk3009
@romantsyupryk3009 3 жыл бұрын
Thanks so much for this video tutorial.
@nd8774
@nd8774 Жыл бұрын
your explanation is chef kiss.
@basheeral-momani2032
@basheeral-momani2032 2 жыл бұрын
الله يعطيك العافية مبدع، شكرا جزيلا
@aymanmahmoudabdelshakour4092
@aymanmahmoudabdelshakour4092 3 жыл бұрын
Thanks, Hussein, Great Job!
@brijeshkp2000
@brijeshkp2000 2 жыл бұрын
You are guru, you are awesome, take a bow 🙇‍♀️👏
@quangminh4847
@quangminh4847 Жыл бұрын
thank you so much, this video is very helpful. so easy for understanding
@ozanerturk9715
@ozanerturk9715 3 жыл бұрын
OMG you just use JB Peterson as a meme in a tutorial. Best combination for me !
@1987eslamsabry
@1987eslamsabry 3 жыл бұрын
man , u are awesome. i just wanted to know what Kafka is as it was mentioned in some topics related to my job and found ur video, loved ur explanation and simplicity. well explained bro.... keep it up man.
@hnasr
@hnasr 3 жыл бұрын
Thank you SemSem
@sbylk99
@sbylk99 2 жыл бұрын
I have a question "Can the number of partitions changed during execution?" I did some research and share the answer here: 1. Number of partitions can be increased, but can not reduced. 2. When increasing number of partitions, Kafka servers are kept running. No code shut down time. 3. Rebalancing traffic is handled by Kafka, producer will send messages by the new partition and consumer will consume messages from new partitions too. Client does not need to handle the rebalancing.
@brightstar1927
@brightstar1927 Жыл бұрын
Awesome explanation !
@KrishnaJaju24
@KrishnaJaju24 2 жыл бұрын
Best starter video on Apache Kafka. One question: How is the order of message arrival maintained in different partitions?
@ParthShah1504
@ParthShah1504 3 ай бұрын
"Kafka guarantees that messages from a single partition are delivered to a consumer in order. However, there is no guarantee on the ordering of messages coming from different partitions." - from the kafka's published paper
@bhawanajohari
@bhawanajohari 2 жыл бұрын
Very well explained.
@flamencodeveloper4963
@flamencodeveloper4963 3 жыл бұрын
You are a good teacher sir subscribed
@PAVANKUMAR-vj8oi
@PAVANKUMAR-vj8oi 6 ай бұрын
Best in world tutorial
@GeorgiiRychko_G
@GeorgiiRychko_G 3 жыл бұрын
Amazing! It would be really cool if you could make a video on Apache Kafka streams in NodeJS with demo examples, I’ve noticed that there are no proper resources on this subject.
@hnasr
@hnasr 3 жыл бұрын
Georgii Rychko thanks Georgii!! Will do
@GeorgiiRychko_G
@GeorgiiRychko_G 3 жыл бұрын
Thank you a lot!
@harshitsaxena__
@harshitsaxena__ 2 жыл бұрын
Amazing videos , would be great if u can add these slides as well in desciption
@technicallearning5379
@technicallearning5379 3 жыл бұрын
Fantastic video
@teja.648
@teja.648 3 жыл бұрын
superb!!
@linkow
@linkow Жыл бұрын
I literally subscribed because of the Jordan Peterson reference 😂
@miroslavisikiyski4876
@miroslavisikiyski4876 2 жыл бұрын
Hussein, what is your opinion about beanstalkd? Compared with Kafka (used as a queue) which one would you prefer to and why? Thanks
@thatguyadarsh
@thatguyadarsh 2 жыл бұрын
Good to know you too learn fron mr Peterson
@jamasamado6333
@jamasamado6333 Жыл бұрын
Good work Huesein Ramadan Kareem
@artemv3160
@artemv3160 2 жыл бұрын
Thanks!
@anand.prasad502
@anand.prasad502 2 жыл бұрын
true gem
@shiwang789
@shiwang789 3 жыл бұрын
Nice video. please add a video on activeMQ also
@jonsnow9246
@jonsnow9246 3 жыл бұрын
Hi Hussein! Great video! 👍 Can you please make a video on elastic search?
@hnasr
@hnasr 3 жыл бұрын
This should be next because sooo many requested it
@testacc9381
@testacc9381 2 жыл бұрын
@@hnasr Bro, still waiting for it
@user-yo8iq3sm5j
@user-yo8iq3sm5j 3 жыл бұрын
Please describe a Replication factor and how can we add a new consumer group if there is no "free" replica but we need to do it?:)
@Emmanuel-px9lk
@Emmanuel-px9lk 4 жыл бұрын
Liked the Jordan Peterson clip !
@hnasr
@hnasr 4 жыл бұрын
🦞
@claushellsing
@claushellsing 4 жыл бұрын
Something that I can't understand about Kafka are zookeepers, what are they? What are they used for? Where are they used? Its something that puzzle me
@hnasr
@hnasr 4 жыл бұрын
R. Rod. Aha you asked about the hardest piece in the puzzle that I cut from this video, checkout the full kafka video (end screen) I cover that in details
@claushellsing
@claushellsing 4 жыл бұрын
@@hnasr thanks for you answer, again your content is amazing teacher Hussien
@claushellsing
@claushellsing 3 жыл бұрын
@André Rosa what are paxos?
@claushellsing
@claushellsing 3 жыл бұрын
@André Rosa thank you sir for your answer
@shivakumarn7963
@shivakumarn7963 2 жыл бұрын
1000th LIKE. :D
@amlife180
@amlife180 4 жыл бұрын
Excellent video, Was expecting nodejs Kafka demo tho 😕
@hnasr
@hnasr 4 жыл бұрын
Hey Dean! Watch the full kafka video for the code 🙏
@ducthinh2412
@ducthinh2412 Жыл бұрын
Just want to clarify: at 12:27, you said: "One partition'd better be consumed by 1 consumer" This only applies to consumers within the same consumer group, correct? Let's say we have: - 2 consumer groups G1 and G2. - G1 has consumer C1 and G2 has consumer C2 Can a partition P be consumed by both C1 and C2 since those consumers are from different consumer groups?
@hnasr
@hnasr Жыл бұрын
Thanks that is correct, I do mention this in the full kafka video maybe this part was cut during this highlight. Appreciate it
@danielequattrocchi2090
@danielequattrocchi2090 3 жыл бұрын
sorry for the question.. but it can be true that kafka seems to be the "facebook" of a distribuited system?
@ChristianAltamiranoAyala
@ChristianAltamiranoAyala 3 жыл бұрын
One thing to keep in mind is that kafka hands "offset" which is a grest feature in case of kafka restarts
@georgiatsatsani4963
@georgiatsatsani4963 3 жыл бұрын
@t The Bucket Rider: From Kafka to a Film Adaptation
@asknavid7752
@asknavid7752 3 жыл бұрын
🇧🇩🇧🇩🥰🥰
@shiwang789
@shiwang789 3 жыл бұрын
at 8:05 why do subscriber need to know which partition it is publishing the message to? The broker can itself figure out based on the rule of partitioning. And due to some case if it is not possible then do I need to change all my publish requests if add a partitions to an existing topic? That is a very bad design i think.
@hnasr
@hnasr 3 жыл бұрын
I think they made this flexible by allowing the publishing decide which partition, otherwise how would they configure the broker to decide which partition? But i agree with you it has its cost
@shiwang789
@shiwang789 3 жыл бұрын
@@hnasr For eg. in the case that you mentioned, (N-Z) goes to partition 2, so Nader will automatically go to partition 2. Am l missing something here?
@AniketSomwanshi-ll7mz
@AniketSomwanshi-ll7mz Жыл бұрын
@@shiwang789 I agree the broker is absolutely capable of appending to the correct partition by looking at itself
@pvsk10
@pvsk10 2 жыл бұрын
Let's give credit where it truly belongs, "Life is Suffering" - The Buddha, 2500 BC
@nadertarek4822
@nadertarek4822 2 жыл бұрын
Wohooo I got published xDDDD
@lilj1702
@lilj1702 2 жыл бұрын
lol Jordan Peterson has made it in the Kafka vid lol.
@johnsailor3590
@johnsailor3590 Жыл бұрын
I feel partitions and sharding are completely different things
@tambolaking5383
@tambolaking5383 4 жыл бұрын
Where is Kafka used. In which cases is it used?
@hnasr
@hnasr 4 жыл бұрын
When a simple request/response system isn’t cutting it. If the cost of calculating response is high OR if the same response is required by multiple requester services. having a pub/sub system helps in those cases (kafka is just one example) I give some use cases in KZbin here kzbin.info/www/bejne/hWKzmKSLpr9-iqM Thanks for being long time subscriber and asking great questions over the years Vrunda.
@tambolaking5383
@tambolaking5383 4 жыл бұрын
@@hnasr I have built a game. It uses subscription provided by Firestore. game.cvfy.in - Will Kafka be useful in replacing Firestore? The game is if Bingo. So, random numbers between 1 and 90 are shown to players and they claim dividends. So, it's all players are on subscription to one document where updates happen.
@kartikshrivastava1500
@kartikshrivastava1500 Жыл бұрын
So... what is Kafka?
@aaqibhamdule73
@aaqibhamdule73 Жыл бұрын
Why do u suddenly change ur accent to Spanish when explaining about Partition?
@plamenyossifov6135
@plamenyossifov6135 Жыл бұрын
when your title says "What is", you don't start with explaining a component of the very thing you are trying to explain what it is.
@nonameiskickass1319
@nonameiskickass1319 3 жыл бұрын
Like for Jordan Peterson 👌
@redblue7733
@redblue7733 6 ай бұрын
Sorry but this video is not well structured. I believe you know kafka, but you can't to explaint it
@mingusbingus6746
@mingusbingus6746 Жыл бұрын
Jordan Peterson reference was cringe
@TravisTennies
@TravisTennies Ай бұрын
Awesome! And as a side note: The world would be a better place if everyone studied the works of Jordan Peterson.
@colinrickels201
@colinrickels201 Жыл бұрын
Right after your rant on suffering, I got hit with a st Jude’s commercial about children with cancer 🫥
When to use a Publish-Subscribe System Like Kafka?
8:53
Hussein Nasser
Рет қаралды 30 М.
What is Kafka?
9:17
IBM Technology
Рет қаралды 437 М.
How many pencils can hold me up?
00:40
A4
Рет қаралды 13 МЛН
КАРМАНЧИК 2 СЕЗОН 5 СЕРИЯ
27:21
Inter Production
Рет қаралды 437 М.
Apache Kafka Architecture
11:19
Anton Putra
Рет қаралды 12 М.
What is Apache Kafka®?
11:42
Confluent
Рет қаралды 334 М.
Database Indexing Explained (with PostgreSQL)
18:19
Hussein Nasser
Рет қаралды 288 М.
Apache Kafka Explained (Comprehensive Overview)
19:17
Finematics
Рет қаралды 206 М.
System Design: Why is Kafka fast?
5:02
ByteByteGo
Рет қаралды 1 МЛН
Apache Kafka Crash Course
1:18:06
Hussein Nasser
Рет қаралды 410 М.
Про Kafka (основы)
49:23
Владимир Богдановский
Рет қаралды 351 М.
RabbitMQ Crash Course
42:53
Hussein Nasser
Рет қаралды 195 М.
Чем отличается OLED от AMOLED?
0:43
Не шарю!
Рет қаралды 601 М.
Распаковка айфона в воде😱 #shorts
0:25
Mevaza
Рет қаралды 1,6 МЛН
Apple. 10 Интересных Фактов
24:26
Dameoz
Рет қаралды 119 М.
Apple watch hidden camera
0:34
_vector_
Рет қаралды 39 МЛН
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 15 МЛН
Samsung vs Apple Vision Pro🤯
0:31
FilmBytes
Рет қаралды 1,3 МЛН