distributed system practice result

Posted on August 12, 2021   1 minute read ∼ Filed in  : 
  1. 通信前,先修改系统的状态, 因为通信过程中,系统的状态可能发生修改

  2. Client 直接发给coord和participant 会有活锁的问题,多个client 共同对2个server 的 key 加锁, 只发给coord,coord先加锁,然后拒绝后续的请求,可以避免这个问题。
  3. 2pc中, coordinator 发送给participant 也用了at-most-once 这个方式,可是coordintor可以并行发送, 当amoapplication收到新的请求后,会把之前还未完成的请求,标记成oldRequest。




END OF POST




Tags Cloud


Categories Cloud




It's the niceties that make the difference fate gives us the hand, and we play the cards.