Paxos Agreement - Computerphile

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

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

  • @Adamantium9001
    @Adamantium9001 8 ปีที่แล้ว +148

    This isn't an example. It's an abstraction in dire need of an example in order to ground it.

  • @UberAlphaSirus
    @UberAlphaSirus 8 ปีที่แล้ว +156

    crystal clear until, bob came along with a higher id, then it became clear as mud

  • @HydratedBeans
    @HydratedBeans 8 ปีที่แล้ว +32

    This was the hardest assignment I ever did in school. AI was easier than paxos
    Great video!

  • @luciusandco
    @luciusandco 8 ปีที่แล้ว +49

    the thing that bothers me here is that she doesn't explain anything about the IDs. are they randomly generated at joining times, built upon ranking or time bound?

    • @YouHolli
      @YouHolli 8 ปีที่แล้ว +7

      +luciusandco Depends. The algorithm must produce a potentially infinite sequence of values and have a means to compare them. So for example you could start with "a" as the first key, then "aa", then "aaa" and so on measuring the length of the key as comparator. Or you just start at zero and count upwards.

  • @ckmishn3664
    @ckmishn3664 8 ปีที่แล้ว +11

    PAXOS: The official operating system of the Penny Arcade eXpo. 😸

  • @joelhaynie5056
    @joelhaynie5056 8 ปีที่แล้ว +39

    PAXOS, & Vecotor Clocks some of the hardest concepts in Distributed Systems! Both by Leslie Lamport. You guys should snag and interview with HIM!

  • @therouterninja
    @therouterninja 8 ปีที่แล้ว +7

    This is the simplest explanation of Paxos i've found yet. Great job!

  • @DanDart
    @DanDart 8 ปีที่แล้ว +16

    Haven't you covered this before?

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

    can this be used for Angel-only encryption? Where several systems have pieces of the key, but a majority need to agree before the thing can be decrypted

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

    Great Videos Computerphile! Best chain of informative channels that you have got here with Brady and stuff!

  • @docopoper
    @docopoper 8 ปีที่แล้ว +3

    So what if node 3 commits Alice, but fails after committing just to node 4. Then node 4 fails, and then Bob comes along and commits with a lower id to node 5 while node 3 and4 are still down. Bob presumably gets the key using nodes 5, 6 and 1. But if nodes 3 and 4 then come back online and nodes 1 and 6 go offline, then alice asks for the lock again... The majority of nodes think that she has the lock and she has the highest id... So presumably she gets the lock.

  • @zee63976
    @zee63976 8 ปีที่แล้ว +18

    When I had distributed systems class my professor said paxos is so complex that nobody's able to implement it the way Lamport described

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

    Looks like a fault-tolerant variant of 2-phase-commit protocol used to handle distributed transactions.

  • @mattlm64
    @mattlm64 8 ปีที่แล้ว +14

    Raft is a more straight-forward solution and I think it's more widely used.

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

      I can't say if raft is more widely used, but i've encountered it on more systems than paxos. Most universities (I can only speak for the US) tend to focus on paxos as a part of distributed/parallel systems education. Raft was mentioned in the course I took, but paxos was the "teaching algorithm" so to speak.

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

      +Matthew Mitchell Yes. Paxos was known as notoriously hard to understand and implement right, but of course Lamport through that was so much nonsense he had to write his "Paxos Made Simple", thereby proving himself wrong ;-)

  • @tscoffey1
    @tscoffey1 8 ปีที่แล้ว +3

    Which node generates the system-wide id's, such that they are guaranteed to be unique? And if any node can generate the new id, how is the lock for that authority negotiated, so that no two nodes attempt to generate the same id?

  • @Zaurthur
    @Zaurthur 8 ปีที่แล้ว +20

    So it's like a semaphore over a network with error correction? Neat.

  • @YohanesMarioChandra
    @YohanesMarioChandra 8 ปีที่แล้ว +3

    Finally. I've been waiting for this video for a very long time. Thanks for the simple explanation, as always.

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

    Nice explanation, very straight forward and easy to understand!

  • @DanShieldsUK
    @DanShieldsUK 8 ปีที่แล้ว +20

    The Paxos algorithm was actually developed from the tiny Greek island of Paxos' voting system I believe. I've been on holiday there many times :D

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

    What happens if there's an even number of nodes and half fail? Is that considered a majority?

  • @stuffedk
    @stuffedk 8 ปีที่แล้ว +9

    Example of locking: When in the office you want to change an excel file that is on the shared drive but you can't open it because someone else has it open. You're welcome.

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

    What happens when all of the computers that were majority fail? Looks like then we have outdated data.

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

    "Is Alice stuffed"

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

    It looked pretty much like 2PC(Phase Commit) protocol!

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

    A very nice explanation, thank you!

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

    Why did the title change?

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

    you guys need to buy an ipad to draw these diagrams and stream it to a mac or PC over airplay to record them, instead of re-drawing.

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

    Sounds like something VMSclusters have been doing since the 1980s.

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

    42th comment. This is the ultimate number as a comment

  • @jopaki
    @jopaki 8 ปีที่แล้ว

    How is this 'protocol' (paxos) logic realized? SSL/TLS? Or is this a 'special' protocol?

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

    I have the lock!

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

    Genuinely get confused 🤔...

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

    no kudos to the editor. I tried to focus on her drawing and the editor switched all the time between her, her drawings and a digital version of it. Pick one thing!!!!

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

    The changing numbers... and I think she's going a little all over the place. Interesting video though.

  • @abhim7
    @abhim7 8 ปีที่แล้ว

    no subtitles ??

  • @Ratstail91
    @Ratstail91 8 ปีที่แล้ว

    This reminds me very much of the bitcoin blockchain. Presumably one took inspiration from the other.

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

    next time a little bit brighter please

  • @caseythimm5522
    @caseythimm5522 8 ปีที่แล้ว

    You aren't first.

  • @Luredreier
    @Luredreier 8 ปีที่แล้ว

    Hum, this reminds me of the Rust programming language...

  • @TheSpacecraftX
    @TheSpacecraftX 8 ปีที่แล้ว

    Double digits! Also First.

  • @TherealToppo
    @TherealToppo 8 ปีที่แล้ว

    Lmao no

  • @philadams9254
    @philadams9254 8 ปีที่แล้ว

    FIRST!!!!!!!111

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

    FIRST!