The Paxos Algorithm

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 97

  • @pavan8085
    @pavan8085 6 років тому +84

    One of the best presentations on Paxos!! Great job Luis. Very easy to understand and simple examples make it clearer!

  • @sanskaripatrick7191
    @sanskaripatrick7191 Місяць тому

    probably the only video on PAXOS that actually explains all the concepts clearly. Thank you so much!

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

    I have watched quite a lot of videos about Paxos. The one is the most enjoyable. Thanks

  • @stevehe5713
    @stevehe5713 4 роки тому +6

    What do you mean by piggyback? It’s very confusing

  • @Error-rp4dk
    @Error-rp4dk Рік тому +1

    Far more useful than my thousand-euro uni course that, after 4 hours, made me go home crying and with a headache. You've saved me hours of disappointment and confusion, wish you all the best

  • @nomad7317
    @nomad7317 3 роки тому +3

    Thank you soo much Luis!!!! It's no surprise, how these videos are better at teaching (for Free!) than my University!

  • @clinthall9011
    @clinthall9011 6 років тому +21

    Switching the metaphor from *voting and politics* to *deciding what to do together when we just want to do something together but don't so much care what* was super helpful to me. Thanks.

  • @brandonkarai
    @brandonkarai 5 років тому +4

    This is the best explanation of Paxos I've come across, thanks

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

    Well Done. The slides showing communications between nodes made for great examples. Thank you!

  • @MasoudGhaffarinia
    @MasoudGhaffarinia 4 роки тому +8

    Great presentation! Especially I like the presentations in which the algorithm is tweaked/changed as they go through examples, revealing the reasoning behind any subtle part of it. But I wish you also went through the case the proposer receives two different values accepted. That would have shed more light on it. Anyway, thank you for this video.

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

    Great Presentation Luis👍

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

    Excellent !! Please prepare the same type presentation for other type Paxoses.

  • @mienislav
    @mienislav 6 місяців тому +1

    I have an exam tomorrow and this video helped me a lot! Thank you very much!

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

    great presentation! i was confused between log pos and Prepare Id. but it all made sense when i realized they are different things.

  • @arazsharma4781
    @arazsharma4781 3 роки тому +2

    Brilliant Sir!! Looking forward to more such talks from you :D

  • @user-r1g5i
    @user-r1g5i 4 роки тому +9

    Thank you. Also would be nice to get an overview of scenarios when nodes, including proposers, fail and then come back alive

  • @lifnacs589
    @lifnacs589 9 місяців тому +1

    Thank you Luis. It was indeed a beautiful presentation explained with simple diagrams.

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

    Muchas gracias luis por una explanación clarísima

  • @katpham457
    @katpham457 4 роки тому +1

    Best explanation of Paxos that i've seen so far!

  • @croncoder862
    @croncoder862 3 роки тому +2

    How does the proposer know how many majority acceptors are present in the network?

  • @rameshkrishnan618
    @rameshkrishnan618 3 роки тому +2

    Good simplification of Paxos , thanks

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

    This was very insightful! Thank you so much, Luis.

  • @pseeker4
    @pseeker4 5 років тому +2

    It is great, Luis. Thanks for your time explaining Paxos!

  • @camillegoze4923
    @camillegoze4923 6 років тому +2

    Thanks a lot for the video :). I watched it a couple of times to be sure to understand every detail. You saved my exam

  • @bobslave7063
    @bobslave7063 10 місяців тому +1

    best tutorial. Thanks!

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

    Great Presentation! Simple and lucid.

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

    Huge help! Thank you!

  • @raghavendravernekar4103
    @raghavendravernekar4103 4 роки тому +1

    Simply the best sir great learning

  • @nickpatella1525
    @nickpatella1525 5 років тому +5

    I was familiar with Raft before I saw this. This is a really understandable explanation! Thanks!

  • @waffleboot
    @waffleboot 5 років тому +4

    I don't understand how Paxos run is finished, because acceptor will send piggyback promise for each new promise request and proposer have to send accept request with that value instead of wanted value.

    • @iamtheonetheonlybug
      @iamtheonetheonlybug 5 років тому +4

      Proposer 2 compares its own understanding of the current state with the "value" returned back in the latest (given by proposalId) accept-request. In the example given at 14:20, Proposer 2 compares its own understanding and will therefore notice the discrepancy and send out the value "cat" so all the acceptors will be sure to have the latest accepted value. Proposer 2 will then decide whether the update it was planning should now be sent as Prepare 8.

  • @flain283
    @flain283 3 роки тому +3

    This is a good simplified version of Paxos, but does lack a lot of detail.

  • @langhaozhong6785
    @langhaozhong6785 5 років тому +2

    Thank you Luis for this super clear presentation on how Paxos works!

  • @Bill-xl4iv
    @Bill-xl4iv 4 роки тому +2

    Thank U, Luis

  • @orges13eminem
    @orges13eminem 5 років тому +2

    Great presentation Luis. You made it very easy.

  • @RealBossLibertarian
    @RealBossLibertarian 4 роки тому +1

    Love the video, thanks Luis.

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

    Thanks Luis

  • @johnalexandersanabriaordon1851
    @johnalexandersanabriaordon1851 4 роки тому +1

    May I use this video in the EDpuzzle platform?

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

    it helps a lot, thank you

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

    oh my gawd! That initial conversation between friends trying to decide on what to do is such a great example for explaining the additional logic of saying "fiiiiine I'll accept the piggybacked value as others have already reached consensus"

  • @submagr
    @submagr 4 роки тому +1

    OMG. Thank you so much for the great explanation!!!

  • @vitonimal5107
    @vitonimal5107 4 роки тому +1

    Thank you kind sir. Really covered all the cases that I had in mind. Keep up the great teaching skills. I really like the visual support too!

  • @tuktuk0130
    @tuktuk0130 5 років тому +3

    Thank you for the awesome presentation!
    I'd like to organize it in my blog, can I use the image in The Paxos Algorithm slide?

  • @agilc9092
    @agilc9092 3 роки тому +2

    Good one, Thank you.!

  • @fernandosantosdefreitas8061
    @fernandosantosdefreitas8061 4 роки тому +1

    Great!! It Helped very much.

  • @dgk0
    @dgk0 5 років тому +2

    Thank you for the nice presentation

  • @mhcbon4606
    @mhcbon4606 6 років тому +2

    it is funny the practical case is presented as "a distributed storage" : ) Thanks a lot for the video.

  • @anoopmourya3574
    @anoopmourya3574 3 роки тому +2

    thank You

  • @suhasshrinivasan
    @suhasshrinivasan 6 років тому +1

    Thanks for the clear explanation Luis! Just a couple of things:
    1. Could you elaborate further on the 'exponential backoff' strategy that is put in place to avoid an infinite run of Paxos?
    2. Could you provide more examples such as the bank storage system and highlight particularly on corner cases?
    Any reliable links would do too! Thanks!

    • @GP-ez5ms
      @GP-ez5ms 4 роки тому +2

      1. When proposer gets a timeout (probably due to acceptors ignoring his proposal) - he waits for N + random(100) milliseconds and repeats again. If it happens again - he waits for 2N + random (100) seconds. Or something like that

  • @chickentikkasauce1301
    @chickentikkasauce1301 5 років тому +2

    What about the proposer who wasn’t in the majority and consensus was reached? Even with the exponential back off, when does that proposer node “accept” the consensus? Edit: proposer will propose a value, acceptors will piggy back the existing value. Got it.

  • @SanghoOh
    @SanghoOh 5 років тому +2

    Excellent tutorial for Paxos, if the example scenario were provided before the protocol explanation, it would better to understand the overall concepts before going into details.

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

    Great presentation but it seems like everyone wants to use financial incentives and a lot of energy to reach a consensus lol

  • @liuzhen2008
    @liuzhen2008 4 роки тому +3

    Are we assuming none of the proposers/acceptors are malicious in this?

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

      Indeed, all nodes trust each other. Security isn't coming from Paxos but would be from the network layer through encryption and authentication. In practice all nodes would be under your control and running the same code.

  • @宁马-w6w
    @宁马-w6w 3 роки тому +2

    thanks!

  • @chickentikkasauce1301
    @chickentikkasauce1301 5 років тому +2

    So how easy is this to implement? Great vid btw

  • @ainemra
    @ainemra 5 років тому +2

    Great video!

  • @user-gu5sq5yl1j
    @user-gu5sq5yl1j 5 років тому +2

    what if proposer A start with Prepare "infinity". or aka Prepare "Max Value". proposer A will always win. How to prevent that?

    • @MoveYorAss
      @MoveYorAss 5 років тому +1

      For me it seems like it doesn't matter who wins here. The main goal is to let someone win, so there is nothing to prevent in this case.

    • @WBCIWYG
      @WBCIWYG 5 років тому +1

      You cannot ensure that proposer A is the first one to reach a majority of accepted values.

    • @sohanpatil6410
      @sohanpatil6410 5 років тому +1

      That's a byzantine failure and would require BFT to be implemented

    • @jamesbalajan3850
      @jamesbalajan3850 4 роки тому +1

      If a proposer does not follow the Paxos rules, it is considered to be a Byzantine fault.
      Paxos only guarantees consistency without byzantine faults.

  • @rkpetry
    @rkpetry 5 років тому +2

    *_...consensus by majority is indistinguishable from random-coin flipping, until the majority is outside the entropic zone σ√2π : σ ≈ ½√N..._*

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

    Well explained. Lucid with necessary and sufficient details

  • @mortenbrodersen8664
    @mortenbrodersen8664 6 років тому +3

    Thanks! Great talk.

  • @RobertWarrenGilmore
    @RobertWarrenGilmore 6 років тому +5

    Great talk, Luis. I'm still not sure of a few details. For instance, how do the nodes communicate to each other that a new Paxos run is starting? How is starting a new Paxos run different from just issuing new promises in the same Paxos run?

    • @tejvepa8521
      @tejvepa8521 6 років тому +2

      Yup I would like to know the second one too.

    • @ravikanth8695
      @ravikanth8695 6 років тому +4

      Consensus has bueen reached on that value. That is fundamental to a paxos run. One value one consensus one run. Different value different consensus and different run

    • @chenjames9505
      @chenjames9505 6 років тому +2

      good question, I also want to know the answer

    • @iamtheonetheonlybug
      @iamtheonetheonlybug 5 років тому +2

      A Paxos run is just referring to the process to reach the next value for consensus. Once a value has been agreed, the next "Paxos run" starts.

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

      Listen to ua-cam.com/video/d7nAGI_NZPk/v-deo.html carefully again.
      "Paxos will have consensus on one value that will never mutate". To start a new paxos run, you just work on a different value. Taking the "practical example in the video", the consensus on log position 0 (is paxos run 0), the consensus on log position 1 (is paxod run 1) and so on and so forth.
      Thus the consensus on log position 0 will be $100 for eternity and consensus on log position 1 will be $150 for eternity. The application just uses the latest log position as the balance.

  • @luanemmanuel1173
    @luanemmanuel1173 6 років тому

    Thank you for the presentation. Now I'm convinced that Paxos no different from Tether, but with a backdoor.

  • @sonakshimehra5365
    @sonakshimehra5365 5 років тому +5

    Dinner in afternoon 😮

  • @mnfchen
    @mnfchen 6 років тому

    In the bank account example, if the user reads from Replica C (before Replica C "catches up" and gets Log pos. 3), won't it get Log pos. 2? Isn't this inconsistent? I mean, if the client instead reads from Replica A or B, it'll get Log pos. 3...

    • @watcherSL
      @watcherSL 6 років тому +1

      Replica C will also launch a Paxos run during which it will learn the new log position.

    • @chenjames9505
      @chenjames9505 6 років тому +1

      When Replica C received a request from client(actually ,every paxos node will do the same steps),
      1) first, he will start a proposing with (User luis, Log positon 2) to other Paxos node,
      2) and then Acceptor (Replica A or B ) will return (User luis, Log position 3 and value) to Replica C
      3) Replica C will append these message to his Log
      4) at last ,he wil respond to the client with the right value.

    • @hasnainmamdani
      @hasnainmamdani 6 років тому +2

      Paxos guarantees safety (or consistency), which ensures two distinct nodes will never learn different values. However, it does not guarantee the 'timing' of when consistency is achieved. In your example, the returned value (stale or updated) will depend on the implementation of 'get' (or 'read'), which in turn will depend on the use case.

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

      what happens if during this time some nodes go down?
      Say there are 7 nodes and 4 nodes have latest value, and 3 are still to "catch up". At this point, client makes a request to 7th node, but the first 4 nodes which had correct value go down. So therefore client will get wrong value from 3 nodes which were yet to "catch up"(but not cannot catch up because those 4 nodes with correct value are down).

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

      If read is triggering a paxos run, then I believe the system is strongly consistent. If not, then it's eventually consistent. This means that yes, you would get an inconsistent value from replica c in the situation you described.

  • @indavarapuaneesh2871
    @indavarapuaneesh2871 Місяць тому

    So basically the proposers are the leaders or wannabe leaders and the acceptors are replicas.
    The Wannabe leaders would catchup with the leaders when they are online as the consensus has already been reached by the other set of nodes.
    I suppose these Wannabe Leaders are called Learners, which are learning the values on which the consensus has already been reached.
    Nice presentation, now I have a decent overview of what Paxos is. But I reckon modelling nodes in different modes is going to be a difficult journey.

  • @kevin-munch
    @kevin-munch 6 років тому

    Thank you very much, this helped a lot!

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

    Fantastic! Thank you

  • @abbhinaw
    @abbhinaw 5 років тому +2

    Tx a lot.

  • @quanghoang6382
    @quanghoang6382 4 місяці тому

    what the hell is "piggyback" ?

  • @MrAdy0207
    @MrAdy0207 4 роки тому +1

    They could simply go to the cinema and then have dinner. Problem solved!

  • @sdfsfsfd437
    @sdfsfsfd437 6 років тому

    ¿borrando comentarios que no te gustan porque te hacen una crítica? : demuestras realmente "tu nivel".

  • @Paxsali
    @Paxsali 6 років тому +2

    Lawsuit incoming...

  • @newbie8051
    @newbie8051 4 місяці тому

    hmm, confusing as shit

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

    CD >:(

  • @sdfsfsfd437
    @sdfsfsfd437 6 років тому

    A great Paxos explanation here: angus.nyc/2012/paxos-by-example/

  • @lynch8888
    @lynch8888 3 роки тому +2

    Thanks Luis