Apache Kafka Crash Course

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 605

  • @hnasr
    @hnasr  3 роки тому +20

    Check out my fundamentals of Database Engineering udemy course with over 20 hours of deep database systems lectures. Head to database.husseinnasser.com for a discount coupon. Link redirects to udemy with coupon applied.

    • @markyoshikawa4278
      @markyoshikawa4278 Рік тому +2

      I love it and the way it’s presented! Will announce on LinkedIn when I get my cert. Thanjs for putting this together!

    • @Imdeepmind
      @Imdeepmind 8 днів тому

      I think you should update this video as Zookeeper is no longer needed for Kafka.

  • @_sr
    @_sr 3 роки тому +166

    27:28 answer:
    Every broker on a Kafka cluster is also named a Bootstrap Server. All brokers have the metadata required for the clients (producer or consumer) to discover brokers. When a client connects to one of the brokers (which are already configured as bootstrap servers in the Kafka configuration) it makes a "metadata request". The response includes information about topics, partitions, leader brokers, etc. Once the client gets this info, then - in the case of a producer- it makes the write request directly to the leader broker for that specific partition.

    • @hakimbencella4242
      @hakimbencella4242 3 роки тому +2

      Thanks for the explanation

    • @matejlaskomulej
      @matejlaskomulej 2 роки тому +5

      This should be pinned. Thank you!

    • @HarshJain-lk8cw
      @HarshJain-lk8cw 2 роки тому +8

      if all the brokers maintain this metadata then what's the role of zookeeper.

    • @boobalangnanasekaran3381
      @boobalangnanasekaran3381 2 роки тому +15

      @@HarshJain-lk8cw The use of zookeeper is that only one leader is there for a partition at any given time by using some kind of lock registry.

    • @syedsabeehahmedfatmi1099
      @syedsabeehahmedfatmi1099 Рік тому

      This should be pinned. Thanks!

  • @jithin_zac
    @jithin_zac 3 роки тому +70

    I always got demotivated by the complexity I experienced when I tried to learn this on my own but this one is a gem. I know it might have taken a lot of learning and experience for you to explains this in a simple manner Nevertheless thank you for sharing your knowledge!

    • @hnasr
      @hnasr  3 роки тому +10

      Thank you Jithin! And Remember to ask in the community to get access to the slides if you would like to since you are a member❤️

  • @kpcurt
    @kpcurt 3 роки тому

    Super video! I applauded for $2.00 👏

    • @hnasr
      @hnasr  3 роки тому

      ❤️❤️❤️❤️

  • @satalkar
    @satalkar 4 роки тому +57

    I rarely comment on videos but this was genuinely one of the best computer science tutorials I've ever seen!

    • @hnasr
      @hnasr  4 роки тому +5

      Thank you Anish for taking the time to write this appreciate you!

  • @MrMubashirAli
    @MrMubashirAli Рік тому +3

    I just wanted to express my heartfelt appreciation for the amazing Kafka crash course, Your dedication to simplifying complex topics shines through, and I can't thank you enough for making Kafka so much easier to understand.

  • @AdityaDodda
    @AdityaDodda 4 роки тому

    Super video! I applauded for $5.00 👏👏

    • @hnasr
      @hnasr  4 роки тому

      ❤️🙏🙏

  • @manishbolbanda9872
    @manishbolbanda9872 2 роки тому +2

    i had to deal with Kafka in one of my project, so searched for some tutorials, As soon as I saw that you have made a video on this, i had a sense of relief that i dont have to worry about the resource atleast. Thanks for all your efforts man.

  • @ershad003
    @ershad003 Рік тому +6

    Sweeeeet... did not feel like a tutorial, but like a friendly chat between deeply connected friends, every word makes clear sense. Kept me engaged every second till the end, yes I made to the end. Well done Sire... 👏👏👏

  • @bokilsbk23
    @bokilsbk23 8 місяців тому +2

    Great tutorial as always. Literally a crash course fit into about an hour. Has everything to get started with kafka, especially because of the hands on.

  • @zmm1337
    @zmm1337 4 роки тому +182

    how do you only have 23k subs?? you're so good at explaining difficult concepts, tysm!

  • @danuzonez
    @danuzonez 5 років тому +15

    Another perfect tutorial. Everything is explained very nicely. Thanks for making Kafka easy to understand in this tutorial.

    • @hnasr
      @hnasr  5 років тому

      Atif Ali thanks Atif for your support! Happy I could make such complex topic easy to absorb.. still I didnt cover all what kafka has to offer! Cheers

  • @rubensingh6809
    @rubensingh6809 2 роки тому

    bro your tone when explaining these videos are so good. Didn't even feel like someone was teacahing me. It was as if a friend was talking to me lol. Good job man. Your excitement is intoxicating. :)

  • @stmasanti
    @stmasanti 4 роки тому +7

    One of the best tutorials i’ve seen. Great class and very funny. Subscribed and waiting for more content!

  • @mikejeffery8371
    @mikejeffery8371 4 роки тому +16

    This was an awesome tutorial. You're incredibly good at explaining things and keeping people engaged when consuming so much information.

  • @asht7290
    @asht7290 3 роки тому +1

    Dude, I made it to the End. You kept us engaged throughout. I have soo much to learn about Comp Sci!

  • @atexnik
    @atexnik 3 роки тому +1

    This is the BEST educational channel!!! Bravo!

  • @nimasoufiloo2626
    @nimasoufiloo2626 4 роки тому +1

    Couldn't learn kafka better in such a short time. Thanks Hussein.

  • @eduardotp541
    @eduardotp541 Рік тому

    Not only the content, but the way you say it, and your enthusiasm, is something else. You sir deserve all the best, because you are, with no doubt, in the better's shelf..

  • @luqmansen
    @luqmansen 5 років тому +2

    I just watched your RabbitMQ crash course and at the end of the video you mention how Kafka better at some point, then I bumped into this great video. Very clear explanation, love your video!

    • @hnasr
      @hnasr  5 років тому +1

      Luqman S thanks Luqman! Each software its use cases, I think RabbitMQ Is trying to be more than it really is (a message queue) where as kafka was designed to be a pub/sub and a message queue. If your app needs a queue and a pub/sub (or maybe streaming) than Kafka . If you just need a queue RabbitMQ is the way to go and kafka will be an overkill I think..
      I would even consider zeromq as a lightweight mq..
      Good luck!

  • @MOHDSALMAN-sj2zu
    @MOHDSALMAN-sj2zu 4 роки тому +13

    I made it to the end. :P Thank you so much for the amazing content Hussein.

  • @johnshaheen3862
    @johnshaheen3862 4 роки тому +2

    professionalism + enthusiasm + enjoyment + wonderful content= Hessein Nasser

    • @hnasr
      @hnasr  4 роки тому +1

      John Shaheen you make me blush John 😊 thanks !!

  • @rmannrich
    @rmannrich 3 роки тому

    Thanks!

  • @a.yashwanth
    @a.yashwanth Рік тому

    You explain by answering all the questions people get when learning a topic. Most tutorials just explain concepts.

  • @crypto-saiyan9283
    @crypto-saiyan9283 2 роки тому +1

    Today i understood, its not the subject its the way of teaching...thanks for sharing this wonderful knowledge

  • @saurabhdeshpande8450
    @saurabhdeshpande8450 3 роки тому

    Best explanation of Kafka on the internet!

  • @prakharvijay8853
    @prakharvijay8853 3 роки тому +1

    Made it to the end, now gonna implement the backend of a texting app using Kafka

  • @alexsiuwh
    @alexsiuwh 10 місяців тому

    this is the only tutorial i found that go in the depth and details of a pro should know , and i can compare Kafka with other messaging system like JMS and MQ. Thanks so much for sharing👍👏🙏

  • @nihinlola
    @nihinlola 2 роки тому +1

    Excellent practical explanation of Kafka, I wish every technical tutorial was as easy as this. Thumbs up!

  • @jasonngan5747
    @jasonngan5747 2 роки тому +1

    The explanation and illustration is clear and concise! Thanks for the comprehensive tutorial!

  • @stefanmiller5818
    @stefanmiller5818 2 роки тому +2

    You really know how to do tutorials, great video!

  • @mutasworld
    @mutasworld Рік тому

    I made it to the End! Thank you for that video, I can now say I understand Kafka a lot better than 1 hour ago :)

  • @peternamagonya5310
    @peternamagonya5310 2 роки тому

    I made it to the end. Followed every step and it worked nicely. Thank you for the effort... really helpful

  • @ComisarioLobo
    @ComisarioLobo 3 роки тому +1

    Man, you are the best, thanks a lot for creating such valuable content for free

  • @NickLeenknecht
    @NickLeenknecht 3 роки тому +6

    Answer to - 27:25 - The producer sends a Metadata request with a list of topics to one of the brokers in the broker-list you supplied when configuring the producer. The broker responds with a list of partitions in those topics and the leader for each partition. The producer caches this information and knows where to redirect its produce messages. In case of failure while producing, failed broker's data (topics and its partitions) dynamically linked to existing replica which is present on another broker via topic's replication and new leader's information is communicated to the client (producer).

  • @MAJHOOOL1995
    @MAJHOOOL1995 3 роки тому

    Made it to the enddddd ... I know how kafka works “at least before witching this tutorial “ but after this tutorial many things become clear to me ... Thanks a lot

    • @hnasr
      @hnasr  3 роки тому

      ❤️❤️❤️ روعه!

    • @MAJHOOOL1995
      @MAJHOOOL1995 3 роки тому

      @@hnasr هههههههههههه اسعدتني في بداية يومي

  • @vbrtrmn
    @vbrtrmn 4 роки тому +2

    Great video, thanks for making it. Love your accent! You're very easy to understand, follow, and your excitement is fantastic!

    • @hnasr
      @hnasr  4 роки тому

      vbrtrmn glad to know thank you! Lots of people have trouble with my accent glad you like it!

  • @HirschDaniel
    @HirschDaniel 4 місяці тому

    Thanks, I feel like I learned everything I need to know about Apache Kafka from this video. Sure, there are more advanced concepts. But this is the essence.

  • @manishtanwar4803
    @manishtanwar4803 3 роки тому

    made it to end. Amazing video. you made Kafka look so simple, and the best part-> you showed a code demo. clap. clap.

  • @t529615
    @t529615 4 роки тому

    By far the best introduction video to Kafka I have seen. Great examples and nice build up to demos that puts theory into practice.

    • @hnasr
      @hnasr  4 роки тому

      Hans-Jacob Melby thanks Hans!

    • @t529615
      @t529615 4 роки тому

      @@hnasr One question though.. Shouldn`t the consumer allways get all messages in the topic (within its partition)? I can see that the property "fromBeginning" i set to true, but when i restart the consumer, it still waits for new mesages. It does not replay the old ones?

  • @talkohavy
    @talkohavy 2 роки тому +5

    I didn't know you before this video, but after this video? I'm gonna watch everything you upload man. Every tutorial you're selling? I'm buying! Obviously I liked & subscribed.

  • @ibknl1986
    @ibknl1986 3 роки тому

    I made it to the end. Excellent. I don’t remember which video previously I saw was so long MD not boring at all. In fact you made it so interesting. May Allah (God) guide and bless you.

  • @gokulkpeethu6642
    @gokulkpeethu6642 Рік тому

    The best stuff on kafka . Made it so simple

  • @abrahammoyo2939
    @abrahammoyo2939 4 роки тому

    Hussein, You are a legend!!! Any one can be a master if they follow to your conversations. I like the way yo have a full conversation with yourself - such a good dialogue asking and answering yourself

    • @hnasr
      @hnasr  4 роки тому

      Thank you! I am happy you noticed the conversation style, i have been working on it 😊

  • @shantnukumar1642
    @shantnukumar1642 2 роки тому +1

    Made it to the end! Awesome video Hussein :)

  • @93kazem
    @93kazem 4 роки тому +11

    Thank you for this, don't know how I missed it

  • @yuanqingzhang3648
    @yuanqingzhang3648 3 роки тому

    This course is great because of the example. It's much better than some videos in which only some introductions are represented.

  • @luniacllama8373
    @luniacllama8373 7 місяців тому +1

    made it to the end , noice, hopefully i consistently get better at backend and devops :3

  • @olorundareagnes934
    @olorundareagnes934 2 місяці тому

    Thanks a lot, Husseine. You definitely demystified Kafka.

  • @DavidBwire
    @DavidBwire 2 роки тому

    Thank you for putting in the effort to make a short and clear to understand video.

  • @fkadeal
    @fkadeal 2 роки тому +1

    I made it to the end 👍👍😂

  • @satheeshprabhakaran5330
    @satheeshprabhakaran5330 2 роки тому +1

    Made it to the end!! Amazing content!

  • @ilyakushlianski6519
    @ilyakushlianski6519 3 роки тому

    Amazing, Hussein! Thanks for the overview of Kafka. I've always been a bit afraid of this beast, but now I understand at least the basics

  • @unboxingsparkles5786
    @unboxingsparkles5786 4 роки тому +1

    I made it to the end. Love the long videos and the content 👌👌👌

    • @hnasr
      @hnasr  4 роки тому

      sidra tariq thanks Sidra I like long format too 😊🙏

  • @adilsheikh9916
    @adilsheikh9916 2 роки тому

    Appreciate your efforts...like the way you clearly say what you know/understand & what you dont...else I see most people in Industry are faking the intelligence & understanding about any technology & they pretend it so perfectly like they themselves have developed that tech...while those who actually know/understand the tech properly are very few & rare...
    So always good to watch your videos to understand something in simple words rather mugging those funky & techie words.

  • @malith_videco
    @malith_videco 4 роки тому +1

    Just started watching and already loving it. I wish you a happy new year and hoping to see more great content like this.

  • @robbenbahati
    @robbenbahati 8 місяців тому

    made it to the end, and every detail was fully explained thanks.

  • @obiwanus
    @obiwanus 4 роки тому

    Huge props for trying to understand things before you teach them!

  • @shivangitomar5557
    @shivangitomar5557 3 роки тому

    This is THE BEST video on this topic. Thanks a lot!

  • @atom_rr
    @atom_rr 2 роки тому

    You're killing me man "LISTENERRRS" 🤣 ! Great video by the way.

  • @shubhamchandra336
    @shubhamchandra336 3 роки тому +2

    Really enjoyed this informative session and yeah, made it to the end !!!

  • @myviewsmyreviews2001
    @myviewsmyreviews2001 3 роки тому +1

    Amazing tutorial! Really find the topic interesting and easy to understand broker, producer, consumer etc.. Thanks for coming up with a great video. Hope we will get to see more on this.

  • @sy5294
    @sy5294 4 роки тому +2

    Your skillset is brilliant, amazing and fantastic. Thank you so much!

  • @sumanth6299
    @sumanth6299 3 роки тому

    This guy nailed it completely. Luckily, I landed here!!!

  • @mzaman8660
    @mzaman8660 4 роки тому +1

    This is brilliant and concise. Been looking for a channel like this 👍🏾

    • @hnasr
      @hnasr  4 роки тому

      M Zaman enjoy the content 🙏

  • @yashmore7732
    @yashmore7732 3 роки тому

    your contents are more enjoyable then any Phd holding professor! lol:))))))))

  • @Garkolym
    @Garkolym Рік тому

    Thank you very much

  • @hvuupadhyay5418
    @hvuupadhyay5418 Рік тому

    Made it to the end! Yay! Nice video Hussein!

  • @pongching8697
    @pongching8697 4 роки тому

    Clear and easy to understand. Although it's a long video, but not boring at all.

  • @bimalmithranpb6620
    @bimalmithranpb6620 3 роки тому

    Best content on Kafka for beginners 👌

  • @beatagryczka7108
    @beatagryczka7108 3 роки тому +3

    Amazing video! You have the talent to explain the complicated stuff really clearly😊

  • @Goodwin454
    @Goodwin454 3 роки тому

    I was looking for your channel , you really good at explaining things you helped me once , I'm here again , thank you andn jazkAlllah khayran .

  • @linwang7476
    @linwang7476 2 роки тому

    Very nice tutorial. Got a clear understanding of Kafka, especially the part of queue, pub sub, very helpful! Thank you so much!

  • @alishoman2826
    @alishoman2826 3 роки тому

    the simplest and best tutorial ever!! Good Job

  • @mazzoleniit27
    @mazzoleniit27 3 роки тому

    Finally a funny geek! I have enjoyed the video

  • @princeabdul4290
    @princeabdul4290 4 роки тому

    Brother you're videos are phenomenal they are just top notch.

  • @flippolis71
    @flippolis71 2 роки тому

    This is a great video to understand what Kafka is and how it works, very well explained!

  • @mosespeter9711
    @mosespeter9711 3 роки тому

    I made it to the End!!! Thanks so much Hussein!

  • @neru4557
    @neru4557 4 роки тому +1

    Just watched it straight 1 hours 18 minutes during night without skipping.

    • @hnasr
      @hnasr  4 роки тому

      Hero! I apologies for the light background on my slides that must have hurt the eyes :( I switched to dark mode on my future videos..

  • @KuldeepYadav-jw7jn
    @KuldeepYadav-jw7jn 3 роки тому

    Hi Hussein, I love your way of explaining complex topics, kudos for good work.
    For some time, I was also confused about how the producer sends to the leader only, then I found out this in Kafka docs
    "The producer sends data directly to the broker that is the leader for the partition without any intervening routing tier. To help the producer do this all Kafka nodes can answer a request for metadata about which servers are alive and where the leaders for the partitions of a topic are at any given time to allow the producer to appropriately direct its requests."
    So I think the producer query the info before writing.

    • @kevalprajapati3962
      @kevalprajapati3962 8 місяців тому

      @KuldeepYadava -
      Thanks for answering the question.
      On top of this I have question does the producer request for "give me the leader" every time before sending message or it keeps doing on certain interval.

  • @a.yashwanth
    @a.yashwanth Рік тому +1

    ₹40 is nothing but I wanted to give something to encourage others to do the same.

  • @bhaveshgujarathi926
    @bhaveshgujarathi926 Рік тому

    made it to the end 🤟. It was a very good explanation with great clarity. Really Appreciate your work! Thanks a lot 🙏

  • @u.s.6909
    @u.s.6909 7 днів тому

    This was actually good. I was able to get it to run January 2025.

  • @priyadarshiBharat
    @priyadarshiBharat 3 роки тому

    Cant say techical corrrect, but this video clears a lot of common confusions associated with Kafka fundamentals.

  • @zasmlabs
    @zasmlabs 4 роки тому +1

    Subscribed. Notification On. Shared.

  • @psuter80
    @psuter80 3 роки тому +1

    thank you, this video was a great intro to understand what kafka is and how it works for a complete noob :)
    here is a docker-compose.yml that starts your two ontainers in case anybody wants to use that to go through your examples. basically i just took your two lines and converted them to compose.
    version: '3'
    services:
    zookeeper:
    image: zookeeper
    restart: always
    ports:
    - "2181:2181"
    kafka:
    image: confluentinc/cp-kafka
    restart: always
    ports:
    - "9092:9092"
    environment:
    KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
    KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://localhost:9092'
    KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: '1'
    another addon: create a copy of consumer.js and edit the group name.. start that in parallel with the two consumer.js processes which then demonstrates pub sub behavior.
    i write all this one and a half hour after not even knowing what the difference between a queue and pub sub is and what kafka and zookeeper are :) .. this just shows how good this tutorial was :)

  • @susmitvengurlekar
    @susmitvengurlekar 2 роки тому

    Made it till the end !
    You can explain something in a super simple manner if and only if you understand it
    And you do, Thanks !

  • @hirenjoshi2198
    @hirenjoshi2198 3 роки тому

    Amazing explanation Hussein. Every single bit of your lecture is fully understandable. You made difficult thing easy with practical example. You rocked! Good Luck.

  • @jongxina3595
    @jongxina3595 2 роки тому

    best video on kafka. Thanks a ton!

  • @umair.ramzan
    @umair.ramzan 4 роки тому +1

    made it to the end :))) Thank you Hussein, you are the best!!

  • @matipamodisane3898
    @matipamodisane3898 3 роки тому

    Love the Gary Vee references😄 awesome video

  • @sindhumohana6164
    @sindhumohana6164 3 роки тому +1

    Amazing video Hussein ! The way you explain helps to register the information in our memory :-)

  • @hangduong6683
    @hangduong6683 Рік тому

    oh my god I love this video so much =]] this is such an amazing tutorial and how funny the instructor is : D

  • @stevensonicteam
    @stevensonicteam Рік тому

    Thank you. Best video so far for learning kafka. 👍

  • @shahrukhafzal2555
    @shahrukhafzal2555 3 роки тому

    Bro... you are awesome... May Allah bless you...

  • @amirhosseinmoayedi6205
    @amirhosseinmoayedi6205 Рік тому

    truly amazing-so simple and incredibly useful. Great job!

  • @premraj.m
    @premraj.m Рік тому

    1:11:10 I got core point about event driven. Thank You Sir!

  • @PramodKumar-hu7mt
    @PramodKumar-hu7mt 2 роки тому

    It's good that you included jordan speech...i was just googled that video and came back

  • @leomonz
    @leomonz 4 роки тому +2

    love your accent and voice.. Great video and explanation

  • @kramnedski1988
    @kramnedski1988 10 місяців тому

    I appreciate the content. no boring part :)