Apache Kafka: a Distributed Messaging System for Log Processing

  Рет қаралды 84,272

Gaurav Sen

Gaurav Sen

Күн бұрын

Пікірлер: 100
@gkcs
@gkcs Ай бұрын
Thank you for watching. Also, NEW EPISODE: interviewready.io/learn/system-design-course/building-an-ecommerce-app-1-to-1m/7-the-case-of-the-expensive-cache
@ashutoshsamantaray6596
@ashutoshsamantaray6596 Ай бұрын
zookeeper is no longer used in the latest version of kafka. The newer version is Kraft using consensus protocol among brokers. Makes it more scalable
@gkcs
@gkcs Ай бұрын
Yes, they use RAFT now 😁
@FakeDumbDummy
@FakeDumbDummy 14 күн бұрын
way better than zookeeper for managing live clusters...
@kidkool27
@kidkool27 Ай бұрын
Wow I was just out of college when I first found your channel. I’m a fresh senior now preparing for interviews, great video!
@gkcs
@gkcs Ай бұрын
Glad to read this, cheers!
@sarwajeetbharti2856
@sarwajeetbharti2856 9 күн бұрын
Great Explanation with lovely animation !Thanks Gaurav Bhai !
@sunnykumarsingh7039
@sunnykumarsingh7039 13 күн бұрын
Such a simple yet elegant video Gaurav!
@tayyabachowdary1007
@tayyabachowdary1007 Ай бұрын
Have been following you since long and i am so impressed with the consistency and humility. Yoir explanations are simple and you seem like a college mate we are getting to learn from.thanks for all the free content
@gkcs
@gkcs Ай бұрын
Cheers!
@WinnersDontWin
@WinnersDontWin Ай бұрын
Been trying to study this for the best to weeks, and this is by far the best youtube on the topic
@gkcs
@gkcs Ай бұрын
Thank you!
@rajkumar-in3sk
@rajkumar-in3sk 8 күн бұрын
6:58 If I remember correctly, ZooKeeper uses the Zab (ZooKeeper Atomic Broadcast) protocol instead of Paxos for consensus. Starting with version 2.8, Kafka no longer relies on ZooKeeper for leader election. Instead, it uses KRaft (Kafka Raft), Kafka’s implementation of the Raft consensus algorithm, for managing metadata and coordination internally.
@TheCodingChamelion
@TheCodingChamelion Ай бұрын
Tomorrow is exam and this video was saviour for the kafka topic
@SaiBharatBatchu
@SaiBharatBatchu Ай бұрын
It’s a great video. It covered the features of kafka well. I feel the way you explain a problem and explain how to overcome it might not be obvious to the listeners that kafka automatically takes care of these. For eg, you said multiple consumers might consume a message from the same influencer topic leading to notification duplication, and you explained consumer grouping as the solution to it. But you might have missed to explain that it is not actually possible, any extra consumers more than one active on a partition sits idle and kafka takes care of it automatically. Viewers might think that as some inherent problem with kafka and they would be required to handle it. Apart from these minor things the video is very good. Thanks for making it!
@gkcs
@gkcs Ай бұрын
Thank you!
@NikhilKumar-oy7mx
@NikhilKumar-oy7mx Ай бұрын
I have worked on sqs n sns but this helped me understand that concept Thanks a lot 🎉🎉
@gkcs
@gkcs Ай бұрын
Cheers!
@Engineerhoon
@Engineerhoon Ай бұрын
I haven’t received my Amazon delivery yet. What might be the possible reason?
@sommukherjee2582
@sommukherjee2582 Ай бұрын
@@Engineerhoon someone in Amazon must have missed a # in Amazon code
@gkcs
@gkcs Ай бұрын
Sorry are you sure you are on the right video?
@e.l.5402
@e.l.5402 Ай бұрын
@@gkcs kafka must have lost the order event
@noah-sheldon
@noah-sheldon Ай бұрын
@@gkcs haha
@aayushnarayanofficial
@aayushnarayanofficial Ай бұрын
A missing #
@prakharsinha4145
@prakharsinha4145 29 күн бұрын
awsm explanation bhaiya!... understood every bit!
@gkcs
@gkcs 29 күн бұрын
Cheers!
@ikaaika3155
@ikaaika3155 8 күн бұрын
Man thanks for sharing this
@sojanmathew5875
@sojanmathew5875 Ай бұрын
Hi @gkcs, it looks Kafka partition leader handles both read & write. Write Acknowledgments: The level of acknowledgment (acks) from the leader to the producer depends on the producer configuration: acks=0: The producer does not wait for acknowledgment. acks=1: The producer waits for acknowledgment only from the leader. acks=all: The producer waits for acknowledgment from all in-sync replicas (ISR). [ Read ] Consistency: For strict consistency, consumers can be configured to only read from committed offsets (data replicated to all in-sync replicas). Also newer version of Kafka (2.8 onwards) introduced KRaft (Kafka Raft) as replacement for Zookeeper to simplify operations & system design.
@gkcs
@gkcs Ай бұрын
Ah, lots of improvements over the 2011 paper I see. Thank you for sharing them!
@varunv2088
@varunv2088 Ай бұрын
Awesome! The best kafka internal architecture video
@bharathraj4196
@bharathraj4196 Ай бұрын
Intresting bro looking forward to work in Kafka... Soon i am going to complete my HTML class 🎉
@satyamjha68
@satyamjha68 Ай бұрын
Amazing video as always! Really informative!
@gkcs
@gkcs Ай бұрын
Thank you!
@random_color_lemon
@random_color_lemon Ай бұрын
Nice explanation. Thanks!
@gkcs
@gkcs Ай бұрын
You are welcome!
@sudipmandal2497
@sudipmandal2497 Ай бұрын
Thanks again for a great video.
@gkcs
@gkcs Ай бұрын
Thank you!
@kryptu
@kryptu Ай бұрын
very useful , Thanks Gaurav
@RR-zg5rd
@RR-zg5rd Ай бұрын
you are amazing brother!
@raunaksingh8913
@raunaksingh8913 Ай бұрын
Very well explained
@riturajsrivastava9242
@riturajsrivastava9242 Ай бұрын
Great thanks Gaurav Sen
@girishanker3796
@girishanker3796 Ай бұрын
Great video 🤜🤛
@gkcs
@gkcs Ай бұрын
Thank you :D
@dhruva_kashyap
@dhruva_kashyap Ай бұрын
1) Why do you call yourself gkcs 2) These new videos you upload, do you add them to your system design course as well? (I have enrolled and I am trying to figure out if your course is enough, or if I need to watch the videos as well) Great video as always btw 😁
@gkcs
@gkcs Ай бұрын
1. It stands for General Knowledge Counter Strike. It was my cs handle in college, and it stuck with the KZbin channel :D 2. We typically go into more depth at InterviewReady with the research papers. We dive into the papers as a group during the live zoom sessions. You can see the recordings here: interviewready.io/learn/system-design-course/scaling-memcached-at-facebook/november---memcached-reading Thank you!
@dhruva_kashyap
@dhruva_kashyap Ай бұрын
​@@gkcsthank you for taking the time to respond :) I'll surely check it out, all the best!!
@debasishphukon2314
@debasishphukon2314 Ай бұрын
I asked the first same question years ago, I initially thought it was General Knowledge Computer Science. @gkcs put up a poll after that If I remember correctly, and then I got to know the real full form
@cugansteamid6252
@cugansteamid6252 Ай бұрын
Thanks Gaurav!
@kartiksachdeva3
@kartiksachdeva3 Ай бұрын
The timing of this video is like it was made for me :P
@gkcs
@gkcs Ай бұрын
Cheers!
@prof_as
@prof_as Ай бұрын
thankyou absolute amazing
@chandrashekark5382
@chandrashekark5382 Ай бұрын
Well explained, I’m a Frontend developer and heard people talking about Kafka so this helps me to be part of discussion. Also, can you complete the Application cache box at 13:18. It triggered my OCD 😂
@gkcs
@gkcs Ай бұрын
Hahhaha 😁
@kaustubhdixit8278
@kaustubhdixit8278 Ай бұрын
This is gold...
@gkcs
@gkcs Ай бұрын
Thank you!
@aj.arunkumar
@aj.arunkumar 11 күн бұрын
You said kafka uses paxos, but isn't zookeeper atomic broadcast used ?
@SuperJikks
@SuperJikks Ай бұрын
I see you have mentioned multiple time that kafka consumer reads from replicas. But I guess this is incorrect, both producer and consumer only interact with leader at any point of time. Can you confirm this? You are right where you mentioned "Consumer consume message only once they are replicated to all the replicas" but still they consume only from leader replicas
@puneetkumarsingh1484
@puneetkumarsingh1484 Ай бұрын
At 5:36, why didn't the message no. 4 get replicated to the other partitions after it was received?? That way, when middle kafka broker would receive 5, everything would remain consistent
@FakeDumbDummy
@FakeDumbDummy 14 күн бұрын
that was just a problem scenario for explaining possible data inconsistency which doesn't happen ... if you set acks to leader or min sync replicas to 1 this can still happen
@Clma333
@Clma333 Ай бұрын
This was such an insightful video! I really enjoyed the part about kafka . It reminded me of a video series I recently made on S3 buckets, where I dive deeper into core concept of S3 buckets like replication,storage tiers. If anyone’s interested, feel free to check it out - I’d love to hear your thoughts!
@gkcs
@gkcs Ай бұрын
Thank you!
@Clma333
@Clma333 Ай бұрын
@@gkcs Thank you sir , I have learned so much from you. trying out to make my own niche
Ай бұрын
1. What if consumer itself crashes? 2. Will the consumer wait for the write to be replicated across all replicas of the partition?
@gkcs
@gkcs Ай бұрын
1. It will restart and start pulling messages from it's previous offset. 2. The consumer must wait for the write to be replicated across all partitions (that's the high water mark). It will not find the new messages till they have been replicated.
@biswaasen
@biswaasen 19 күн бұрын
I can use redis as a quque, also there is rabbitmq, why is it better to use kafka?
@ashpreetsinghanand7260
@ashpreetsinghanand7260 Ай бұрын
We can also use rabbitMq
@Goaboyz
@Goaboyz Ай бұрын
Is the kafka replicas internally that way or the user need to configure it as a system design?
@gkcs
@gkcs Ай бұрын
They are that way, and can be configured by the admin.
@saliyamchekka7070
@saliyamchekka7070 Ай бұрын
Why don’t you continue to finish the Kafka course?
@gkcs
@gkcs Ай бұрын
I have a course at InterviewReady on System Design. Do check it out :D
@sasiiqoobackup
@sasiiqoobackup Ай бұрын
can you make videos in dark mode?, it's too bright🐱, the board and animation also white?
@Md_sadiq_Md
@Md_sadiq_Md Ай бұрын
15:05 money money money 🤑
@gkcs
@gkcs Ай бұрын
I can feel the cash through the screen :P
@TheHardikupadhyay87
@TheHardikupadhyay87 Ай бұрын
is it same like rabbitmq and redis? what is the difference?
@bytebgmigaming5704
@bytebgmigaming5704 18 күн бұрын
@@TheHardikupadhyay87 rabit mq is kind of same but it has different qualities and use cases
@priyalvyas2091
@priyalvyas2091 16 күн бұрын
redis is used for cache and not as message queue
@swarupcodes
@swarupcodes 15 күн бұрын
@@TheHardikupadhyay87 Yes but it’s pull based and not push based like rmq.
@gpkarnik
@gpkarnik Ай бұрын
Is it true that zero copy does not work when SSL/TLS encryption is enabled?
@gkcs
@gkcs Ай бұрын
stackoverflow.com/questions/58651562/how-to-best-address-the-adverse-impact-of-ssl-encryption-on-zero-copy-optimizati
@sivaguru671
@sivaguru671 Ай бұрын
Zookeeper works like eureka server?
@gkcs
@gkcs Ай бұрын
Have a look at the third point here: github.com/Netflix/eureka/wiki/FAQ
@avparadox
@avparadox Ай бұрын
Present Sir
@gkcs
@gkcs Ай бұрын
:D
@mehulgoyal6255
@mehulgoyal6255 Ай бұрын
Videos topic is great but i feel there is not a very good explanation to a fresher who watch it very first time
@himankshu
@himankshu Ай бұрын
what were you doing before speaking for the video ?! 😂
@aviiiiiiiiiiiiiiiiiiii
@aviiiiiiiiiiiiiiiiiiii Ай бұрын
Exactly, I had to pause the video to make sure it wasn't me having a sudden heartbeat rise.😂
@gkcs
@gkcs Ай бұрын
I was staring creepily at the camera.
@himankshu
@himankshu Ай бұрын
@@gkcs some design flaw in the system 😂😂
@shivambansal5572
@shivambansal5572 24 күн бұрын
you seem like a fan of Suniel Shetty
@srinivasanranganathan2436
@srinivasanranganathan2436 Ай бұрын
Gourav Sen is captioned as god of sin 😂
@agnelodsouza3396
@agnelodsouza3396 23 күн бұрын
Your name was spelled as God of Sin in the transcript 😂😂
@gkcs
@gkcs 23 күн бұрын
Now it's turned into an Easter Egg :P
Apache Spark: Cluster Computing with Working Sets
11:15
Gaurav Sen
Рет қаралды 17 М.
Apache Kafka Fundamentals You Should Know
4:55
ByteByteGo
Рет қаралды 88 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 761 М.
Kafka Deep Dive w/ a Ex-Meta Staff Engineer
43:31
Hello Interview - SWE Interview Preparation
Рет қаралды 96 М.
System Design Interview: TikTok architecture with @sudocode
45:35
When to Use Kafka or RabbitMQ | System Design
8:16
Interview Pen
Рет қаралды 166 М.
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 183 М.
Про Kafka (основы)
49:23
Владимир Богдановский
Рет қаралды 427 М.
How I built an AI Teacher with Vector Databases and ChatGPT
13:43
What is Kafka?
9:17
IBM Technology
Рет қаралды 479 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН