What makes Kafka special? | System Design

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 42

  • @harisridhar1668
    @harisridhar1668 8 месяцев назад +3

    Thanks for really going over the differences between Kafka versus TMQs - Traditional Message Queues - in this video. It helps to understand Kafka for its benefits with retention, replay, and fanout delivery pattern to multiple consumer nodes/services.
    Also I like your presentation style and the use of multiple colors to highlight the many components and network passing going.

  • @prashantkumardhotre5695
    @prashantkumardhotre5695 5 месяцев назад +1

    What I like most about your videos is that they are short, crisp, to the point, great visuals and no BS

    • @interviewpen
      @interviewpen  5 месяцев назад

      Thank you, glad you like them!

  • @vikramj22
    @vikramj22 Месяц назад

    Thank you for a nice details explanation @ mechanisms of Kafka

  • @48_subhambanerjee22
    @48_subhambanerjee22 8 месяцев назад +3

    Bro... This is like OS... Semaphoring with producer consumer... There also you send process PCB into queue and when queue is full producer sleeps and when empty reciever sleeps

  • @shaikhmubin02
    @shaikhmubin02 8 месяцев назад +2

    Bro you are doing a great job, keep it up💪🏻

  • @AshrafMMA
    @AshrafMMA 7 месяцев назад

    Wow.. now I get why it so much more scalable .
    How do you determine size of queue, and will you cover usages of multiple queues in kafka?

    • @interviewpen
      @interviewpen  7 месяцев назад

      We have a full video about using queues in large scale systems on interviewpen.com :)

  • @mertbozkir
    @mertbozkir 8 месяцев назад +2

    I appreciate you, awesome channel!

  • @pieter5466
    @pieter5466 8 месяцев назад

    Another great video. A great follow up might be Samza. [edit: Samza as a example of stream processing between queues]

    • @interviewpen
      @interviewpen  8 месяцев назад

      We'll add it to the backlog! Thanks for watching.

  • @rustix3
    @rustix3 8 месяцев назад

    4:08 Wow the page cache of the operating system need another video on its own. How does it caches, what strategy it uses? What happens if the consumer becomes available and Kafka need to re-read all previous messages? Do OS cache stores anough of messages, should or even can it be twicked?

    • @interviewpen
      @interviewpen  8 месяцев назад +1

      Yes--tons of OS level enhancements can be made to optimize for specific usage patterns. This is an advanced topic, but we're working on expanding our coverage of these sorts of things in our course at interviewpen.com . Thanks for watching!

  • @sanketagarwal8570
    @sanketagarwal8570 8 месяцев назад

    The content is just too good!

  • @martyallen3801
    @martyallen3801 8 месяцев назад

    RabbitMQ also provides exchanges and fanout, right? What's the big difference between them in that case?

    • @interviewpen
      @interviewpen  8 месяцев назад

      Yep--Rabbit would be classified as a traditional MQ involving exchanges and messages delivered to one consumer.

  • @quachhengtony7651
    @quachhengtony7651 3 месяца назад

    Can you name some of these traditional message queues?

    • @interviewpen
      @interviewpen  2 месяца назад

      Sure! The most common option is RabbitMQ, but there are many others. Thanks for watching!

  • @Labandusette
    @Labandusette 8 месяцев назад

    thank you very much !

  • @rustix3
    @rustix3 8 месяцев назад

    3:01 What just happened? Did the offset below(which is the offset for Consumer below) just went directly through 1 and 2? Or was it going through 1 at the same time as the Offset above was going through 1? I mean the offsets and consumers work in parallel, right?

    • @ygormartinsr
      @ygormartinsr 8 месяцев назад

      The second consumer hadn't pulled data from the queue yet, so its offset was still at 0. Once it did it received the two events that were sitting there

    • @interviewpen
      @interviewpen  8 месяцев назад +1

      Messages can be received by consumers in batch, so when the second consumer polled, it received both messages.

  • @69k_gold
    @69k_gold 7 месяцев назад

    So because we have the event dequeueing in traditional MQ we are losing the throughput capabilities?

    • @interviewpen
      @interviewpen  7 месяцев назад

      It's really more about messages being removed from the queue once consumed--this results in different consumer semantics but makes it harder to optimize for throughput at an OS level. Hope that helps!

  • @elstp2
    @elstp2 8 месяцев назад

    please an review of account system

    • @interviewpen
      @interviewpen  8 месяцев назад

      Is this what you're looking for? ruclips.net/video/uj_4vxm9u90/видео.htmlsi=eaD-ZVsmh2Ha2q3N

  • @imnormal-sl8mj
    @imnormal-sl8mj 8 месяцев назад

    Hi, I still don't get why Kafka can get much higher throughput than to traditional MQ, is it because of its scalability? If so, why isn't traditional MQ more scalable?

    • @interviewpen
      @interviewpen  8 месяцев назад +1

      Kafka efficiently uses optimizations built into the operating system, such as sequential disk access and the page cache. For reference, this is covered at 3:25 in the video--thanks for watching!

  • @santoshpinisetty7796
    @santoshpinisetty7796 8 месяцев назад

    But wouldn't saving all msg waste memory how does it handle the it

    • @abhishek_ar97
      @abhishek_ar97 8 месяцев назад

      Default time is 7 days, after which the message gets deleted. You can find them in the kafka-config file

    • @interviewpen
      @interviewpen  8 месяцев назад

      Kafka will automatically delete old messages when it runs out of space :)

  • @yuzhao5268
    @yuzhao5268 5 месяцев назад

    helpful but shallow. there's gotta be more details. what if the machines running the queues crash? What if publisher publishes faster than consumer consumes? what protocol is used to communicate? if multiple producers are producing, what orders are enforced?

    • @interviewpen
      @interviewpen  5 месяцев назад

      If you want an in-depth video on how queues are used in fault-tolerant systems, check out interviewpen.com :)

  • @quentin7343
    @quentin7343 8 месяцев назад

    How old are you? :O

  • @siux94
    @siux94 8 месяцев назад

    You misrepresented "traditional" MQs.