Apache Kafka 101: Partitioning (2023)

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2020
  • ► TRY THIS YOURSELF: cnfl.io/kafka-101-module-1
    Learn how partitioning works in Apache Kafka. With partitioning, the effort behind storing, processing, and messaging can be split among many nodes in the cluster.
    ► For a COMPLETE IMMERSIVE HANDS-ON EXPERIENCE, go to cnfl.io/kafka-101-module-1
    - - -
    ABOUT CONFLUENT
    Confluent, founded by the creators of Apache Kafka®, enables organizations to harness the business value of live data. The Confluent Platform manages the barrage of stream data and makes it available throughout an organization. It provides various industries, from retail, logistics, and manufacturing, to financial services and online social networking, a scalable, unified, real-time data pipeline that enables applications ranging from large-volume data integration to big data analysis with Hadoop to real-time stream processing. To learn more, please visit confluent.io
    #kafka #kafkastreams #streamprocessing #apachekafka #confluent
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @vinod187118
    @vinod187118 3 ปีที่แล้ว +10

    finally i found the partition logic in this video. Thanks a lot for the crisp video tim.

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

    It's simply a great explanation. Thanks Man

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

    Very well done Tim - Thank you!

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

    Yet again Tim, rock solid short snappy overview.

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

    Great video guys, very helpful!

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

    Thank you, crystal clear!

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

    Thanks Tim.. This is best video over internet for those who just jumped in to Kafka....

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

    Thank so much, it is so clearly

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

    Very well explained ..thank you

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

    man your style of explanation is just awesome..I mean how can you explain things so easily that too without much animation or something...one of the best instructor I must say

  • @Sulerhy
    @Sulerhy 27 วันที่ผ่านมา

    incredible visualized video. Thank you so much

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

    Amazing explanation!!

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

    good explanation, thanks!

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

    clear explanation, thanks

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

    Best explanation for partition.

  • @aditya-desai
    @aditya-desai 3 ปีที่แล้ว +1

    What is the relation between events and messages?
    Messages have key-value pairs? or Events have key-value pairs?
    what exactly ... Events or messages are stored in partitions with key-value pairs?
    this was a helpful video
    Take key ------> HASH Function-------> Output mod (Total no. of partitions) ------> Resulting no. is Partitions number where message going to store.
    I was unaware of this concept.
    Thank You Tim.

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

    Thanks to animation in this video now I better understand partition

  • @RaushanKumar-co3wj
    @RaushanKumar-co3wj 28 วันที่ผ่านมา

    awesome .

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

    Excellent explanation, but one thing that I see just about all videos lack is explaining WHY partitioning is useful and when it is not.

    • @ConfluentDevXTeam
      @ConfluentDevXTeam 3 หลายเดือนก่อน +1

      Gilles here from Confluent. It's a good point, I was wondering the same thing last week and realised we don't have a video that goes into details of how you should partition your topics and why. The best resource is still this blog post from Jun Rao: www.confluent.io/blog/how-choose-number-topics-partitions-kafka-cluster/. Hope this helps!

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

    hey tim, can you tell me another advantage using partition

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

    what if we want to store information for each day in the NASDAQ stock market with ~3000 symbols and 1 billon of trades per day. Should we use one topic for each symbol or just one topic with handred of partitions?
    I want to understand a real case with a hugh amount of data!

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

    When consumer read the topic, how does it know which partition to read the message out?

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

    Hi - what do the Fire logo and wheel logo mean? Are these logos of old Kafka versions? I only could find a slideshow "Kafka - Past, present and future" :)

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

    Is it possible one message can belongs to multiple partitions ?

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

    so it is generally correct , if not always, to say that messages in different partitions within same topic are mutually exclusive?

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

    What's the name of this song? ps: Kafka is amazing

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

    So if you want a FIFO queue, you are limited to only one partition?

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

    When I subscribe to a partitioned Topic, I still get all the messages eventually, just not necessarily in the correct order, right?

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

    Why don't use consistent hashing but use hash/ num_partition?

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

    If the number of partitions changes, does Kafka re-hash and redistribute events? If not then events with the same ID could end up in different partitions?

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

      It would be great to have a crisp explaination also for that

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

      Why would events have the same ID

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

    Do we need to mentioned the number of partition while creating the topics?
    For example if I create the key with CustomerID and create the Kafka topic with 5 Partition then when there is a 6th Customer comes with different Key then which Partition will stored?

    • @AmitMahto-bf5np
      @AmitMahto-bf5np 9 หลายเดือนก่อน

      Yes,you have to mention no. of partitions.

  • @kamal-xd7id
    @kamal-xd7id ปีที่แล้ว

    What if one partition node goes down, then the order can be messed up?

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

    in my humble opinion it is the case in real world, to have a customer acting as a noisy neighbour.

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

    Since Kafka 2.4 the Default Partitioner is set to Sticky Partitioner, and not Round Robin. Hence, if you wonder why all the messages with the null key land in the same partition this is the reason. If you want to set it to Round Robin to how it was before version 2.4 then set it in the props passed to ProducerFactory: props.put(ProducerConfig.PARTITIONER_CLASS_CONFIG, RoundRobinPartitioner.class);