What is CAP Theorem?

Поділитися
Вставка
  • Опубліковано 3 жов 2024
  • Continuing our System Design series, in this illustrated video we talk about the CAP theorem. We will learn what the CAP theorem is, what it means for a distributed system to be Consistent, Available, and Partition Tolerant. Also, we will look at some examples to get the proof of the CAP theorem. After watching this video, you will be able to answer the below questions:
    What is CAP Theorem?
    What is a Distributed System?
    What is Consistency, Availability and Partition Tolerance?
    Proof of CAP theorem.
    Resources:
    github.com/psy...
    codahale.com/y...
    System Design Series:
    • System Design 101
    Channel website:
    roadmap.sh
    Discord Community:
    / discord
    Find us on the internet:
    / roadmapsh
    github.com/kam...
    / roadmapsh

КОМЕНТАРІ • 20

  • @omshreepal9174
    @omshreepal9174 4 місяці тому +4

    the level of example and explanation you gave ,🎩 off , sir....

  • @cyclingdude7018
    @cyclingdude7018 3 роки тому +8

    Thanks Kamran! Love how you explain everything building up to the point without leaving us confused in the end.

  • @Best-Regions
    @Best-Regions Рік тому +4

    Best and most visual explanation I've seen. Thank you

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

    Always had difficulty understanding this concept. Thanks so much.

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

    Crystal clear sir 🙏

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

    great explanation. Thank you

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

    Most important points at the last, In distributed system we can't avoid partition (network failure) , so system should be always partition tolerance, so now choice is always between either consistency or availability.

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

    Great explanation

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

    Great explanation!

  • @surajitpradhan446
    @surajitpradhan446 Рік тому +1

    Thank you so much

  • @NguyenTuan-ek1pv
    @NguyenTuan-ek1pv 2 роки тому +2

    Good video

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

    In case of "Partition Tolerance"
    Cannot we achieve Both Consistency and Availability by having redundant connections in between System S1 and System S2. One setting could be having another System S3 that connects both S1 and S2. That way Both Systems are always connected either directly or indirectly.
    In fact in real world applications, we have Distributed Systems with more than 2 Nodes.

    • @roadmapsh
      @roadmapsh  3 роки тому +7

      It doesn't really matter how you connect the nodes. Partition is not only specific to network issues but the failure of node S2 is also going to be considered as partition - what if S2 itself is dead and can't receive or process any messages; it doesn't really matter how the nodes are connected in that case.
      You might find this article interesting:
      codahale.com/you-cant-sacrifice-partition-tolerance

  • @JoyWithShorts
    @JoyWithShorts 9 місяців тому

    When to choose Consistency and when to choose Availability?

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

    thank you

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

    smooth!

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

    So what is the solution to this problem?

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

    BTW, What Software do you use for making dynamic presentations ?

  • @sagarmehta3515
    @sagarmehta3515 Рік тому +1

    Great explanation