What is Kafka and How does it work?

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น • 92

  • @hnasr
    @hnasr  2 ปีที่แล้ว +8

    Learn the fundamentals of database engineering grab my udemy course database.husseinnasser.com (link redirects to udemy with coupon applies)

  • @Bruh-jw2ze
    @Bruh-jw2ze 4 ปีที่แล้ว +40

    Bro I literally went through entire documentation
    But this solved the consumer group concept in 5 mins 🙌

  • @k.l7111
    @k.l7111 4 ปีที่แล้ว +9

    The explanation of consumer group to achieve queue and pubsub is gold. Thank you.

  • @amospan14
    @amospan14 2 ปีที่แล้ว +8

    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! =)

    • @MUSHIN_888
      @MUSHIN_888 9 หลายเดือนก่อน

      data pipelines are suffering

  • @ayoolafakoya9841
    @ayoolafakoya9841 4 ปีที่แล้ว +21

    Wish someone talks about Machine learning like you do with backend engineering. You are awesome.

    • @JinayShah
      @JinayShah 3 ปีที่แล้ว

      Checkout Srikanth Verma

  • @StephenMoylan-z6h
    @StephenMoylan-z6h ปีที่แล้ว

    Hussein is hands down the best at explaining complex topics. I love the light-hearted approach - hussein always FTW!

  • @section9999
    @section9999 4 ปีที่แล้ว +11

    Bro, you and Gaurav Sen are my two new favorite youtubers. Free high quality content. Awesome stuff! :D

    • @hnasr
      @hnasr  4 ปีที่แล้ว +8

      DataSurgeon 369 Thank you! I love Gaurav content he is so passionate with his work

    • @section9999
      @section9999 4 ปีที่แล้ว +2

      @@hnasr Yeah definitely, and he's pretty funny. That makes it a lot easier to say engaged.

  • @dengzhonghan5125
    @dengzhonghan5125 4 ปีที่แล้ว +12

    This 15 mins video is better than a 2-hour lecture from my professor.

    • @Bruh-jw2ze
      @Bruh-jw2ze 4 ปีที่แล้ว +4

      *7 min video (at 2x)

    • @TravisTennies
      @TravisTennies 9 หลายเดือนก่อน

      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.

  • @mahdibentahar9908
    @mahdibentahar9908 4 ปีที่แล้ว +36

    Lolll i Like the Jordan Peterson bit

  • @Zmey5656
    @Zmey5656 7 หลายเดือนก่อน

    Now I know enough about Kafka after you video, thank you.

  • @FUTETrends
    @FUTETrends 4 ปีที่แล้ว +4

    Wonderdul info Video about Kafka n its components
    Thanks Hussein

  • @sbylk99
    @sbylk99 3 ปีที่แล้ว +6

    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.

  • @vnd2489
    @vnd2489 ปีที่แล้ว

    Wowww, your explanation is funny but easy to understand the concept. Many thanks.

  • @Saurabhandsonu1994
    @Saurabhandsonu1994 4 ปีที่แล้ว +4

    This is amazing content! The one spoof in middle was pretty cool!

  • @nd8774
    @nd8774 2 ปีที่แล้ว

    your explanation is chef kiss.

  • @python2448
    @python2448 2 ปีที่แล้ว +2

    Very quick and deep explanation. You made it very interesting.

  • @artemv3160
    @artemv3160 3 ปีที่แล้ว

    Thanks!

  • @ozanerturk9715
    @ozanerturk9715 4 ปีที่แล้ว +11

    OMG you just use JB Peterson as a meme in a tutorial. Best combination for me !

  • @MUSHIN_888
    @MUSHIN_888 9 หลายเดือนก่อน

    Great video, entertaining, simple and educational at the same time. Subscribed and liked

  • @KrishnaJaju24
    @KrishnaJaju24 2 ปีที่แล้ว +1

    Best starter video on Apache Kafka. One question: How is the order of message arrival maintained in different partitions?

    • @ParthShah1504
      @ParthShah1504 10 หลายเดือนก่อน

      "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

  • @1987eslamsabry
    @1987eslamsabry 4 ปีที่แล้ว +1

    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  4 ปีที่แล้ว

      Thank you SemSem

  • @brijeshkp2000
    @brijeshkp2000 3 ปีที่แล้ว

    You are guru, you are awesome, take a bow 🙇‍♀️👏

  • @linkow
    @linkow 2 ปีที่แล้ว +1

    I literally subscribed because of the Jordan Peterson reference 😂

  • @romantsyupryk3009
    @romantsyupryk3009 4 ปีที่แล้ว +3

    Thanks so much for this video tutorial.

  • @ducthinh2412
    @ducthinh2412 2 ปีที่แล้ว +1

    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  2 ปีที่แล้ว +2

      Thanks that is correct, I do mention this in the full kafka video maybe this part was cut during this highlight.
      Appreciate it

  • @quangminh4847
    @quangminh4847 2 ปีที่แล้ว

    thank you so much, this video is very helpful. so easy for understanding

  • @PAVANKUMAR-vj8oi
    @PAVANKUMAR-vj8oi ปีที่แล้ว

    Best in world tutorial

  • @thatguyadarsh
    @thatguyadarsh 2 ปีที่แล้ว +1

    Good to know you too learn fron mr Peterson

  • @aymanmahmoudabdelshakour4092
    @aymanmahmoudabdelshakour4092 3 ปีที่แล้ว

    Thanks, Hussein, Great Job!

  • @jamasamado6333
    @jamasamado6333 ปีที่แล้ว

    Good work Huesein Ramadan Kareem

  • @basheeral-momani2032
    @basheeral-momani2032 2 ปีที่แล้ว

    الله يعطيك العافية مبدع، شكرا جزيلا

  • @claushellsing
    @claushellsing 4 ปีที่แล้ว +10

    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 ปีที่แล้ว +6

      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 ปีที่แล้ว +2

      @@hnasr thanks for you answer, again your content is amazing teacher Hussien

    • @claushellsing
      @claushellsing 4 ปีที่แล้ว

      @André Rosa what are paxos?

    • @claushellsing
      @claushellsing 4 ปีที่แล้ว

      @André Rosa thank you sir for your answer

  • @brightstar1927
    @brightstar1927 2 ปีที่แล้ว

    Awesome explanation !

  • @minhajkhan504
    @minhajkhan504 หลายเดือนก่อน

    If u could also pls make videos on rest, soap, graphql that would be amazing..thank you

  • @Emmanuel-px9lk
    @Emmanuel-px9lk 4 ปีที่แล้ว +5

    Liked the Jordan Peterson clip !

    • @hnasr
      @hnasr  4 ปีที่แล้ว

      🦞

  • @GeorgiiRychko_G
    @GeorgiiRychko_G 4 ปีที่แล้ว +2

    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  4 ปีที่แล้ว +4

      Georgii Rychko thanks Georgii!! Will do

    • @GeorgiiRychko_G
      @GeorgiiRychko_G 4 ปีที่แล้ว +2

      Thank you a lot!

  • @flamencodeveloper4963
    @flamencodeveloper4963 4 ปีที่แล้ว

    You are a good teacher sir subscribed

  • @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

  • @bhawanajohari
    @bhawanajohari 3 ปีที่แล้ว

    Very well explained.

  • @jonsnow9246
    @jonsnow9246 4 ปีที่แล้ว +4

    Hi Hussein! Great video! 👍 Can you please make a video on elastic search?

    • @hnasr
      @hnasr  4 ปีที่แล้ว +4

      This should be next because sooo many requested it

    • @testacc9381
      @testacc9381 3 ปีที่แล้ว

      @@hnasr Bro, still waiting for it

  • @ChristianAltamiranoAyala
    @ChristianAltamiranoAyala 4 ปีที่แล้ว

    One thing to keep in mind is that kafka hands "offset" which is a grest feature in case of kafka restarts

  • @teja.648
    @teja.648 4 ปีที่แล้ว +1

    superb!!

  • @danielequattrocchi2090
    @danielequattrocchi2090 3 ปีที่แล้ว

    sorry for the question.. but it can be true that kafka seems to be the "facebook" of a distribuited system?

  • @МихайлоМ-ы6д
    @МихайлоМ-ы6д 4 ปีที่แล้ว

    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?:)

  • @amlife180
    @amlife180 4 ปีที่แล้ว +1

    Excellent video, Was expecting nodejs Kafka demo tho 😕

    • @hnasr
      @hnasr  4 ปีที่แล้ว

      Hey Dean! Watch the full kafka video for the code 🙏

  • @shiwang789
    @shiwang789 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      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 4 ปีที่แล้ว

      @@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

  • @harshitsaxena__
    @harshitsaxena__ 3 ปีที่แล้ว

    Amazing videos , would be great if u can add these slides as well in desciption

  • @shiwang789
    @shiwang789 4 ปีที่แล้ว

    Nice video. please add a video on activeMQ also

  • @pvsk10
    @pvsk10 3 ปีที่แล้ว +7

    Let's give credit where it truly belongs, "Life is Suffering" - The Buddha, 2500 BC

  • @anand.prasad502
    @anand.prasad502 3 ปีที่แล้ว

    true gem

  • @georgiatsatsani4963
    @georgiatsatsani4963 3 ปีที่แล้ว

    @t The Bucket Rider: From Kafka to a Film Adaptation

  • @lilj1702
    @lilj1702 2 ปีที่แล้ว +1

    lol Jordan Peterson has made it in the Kafka vid lol.

  • @johnsailor3590
    @johnsailor3590 2 ปีที่แล้ว

    I feel partitions and sharding are completely different things

  • @shivakumarn7963
    @shivakumarn7963 3 ปีที่แล้ว

    1000th LIKE. :D

  • @tambolaking5383
    @tambolaking5383 4 ปีที่แล้ว

    Where is Kafka used. In which cases is it used?

    • @hnasr
      @hnasr  4 ปีที่แล้ว +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 TH-cam here th-cam.com/video/O1PgqUqZKTA/w-d-xo.html
      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.

  • @nadertarek4822
    @nadertarek4822 2 ปีที่แล้ว

    Wohooo I got published xDDDD

  • @kartikshrivastava1500
    @kartikshrivastava1500 2 ปีที่แล้ว

    So... what is Kafka?

  • @plamenyossifov6135
    @plamenyossifov6135 2 ปีที่แล้ว

    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.

  • @aaqibhamdule73
    @aaqibhamdule73 2 ปีที่แล้ว

    Why do u suddenly change ur accent to Spanish when explaining about Partition?

  • @nonameiskickass1319
    @nonameiskickass1319 4 ปีที่แล้ว +2

    Like for Jordan Peterson 👌

  • @asknavid7752
    @asknavid7752 3 ปีที่แล้ว

    🇧🇩🇧🇩🥰🥰

  • @mingusbingus6746
    @mingusbingus6746 ปีที่แล้ว +1

    Jordan Peterson reference was cringe

  • @redblue7733
    @redblue7733 ปีที่แล้ว

    Sorry but this video is not well structured. I believe you know kafka, but you can't to explaint it

  • @TravisTennies
    @TravisTennies 9 หลายเดือนก่อน

    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 🫥