GithubHelp home page GithubHelp logo

charging's People

Watchers

 avatar  avatar

charging's Issues

两阶段提交

总结

  • 两阶段是指:准备提交,提交(终止)
    • 准备包括:每个节点的本地事务,写日志,做提交、回滚准备
    • 执行包括:分布式提交
  • 为了使分布式事务提交保持一致性
  • 跨多个节点的事务操作,每个节点只能知道自己的状态,需要有类似admin的中心节点来收集状态,再做决策,是终止(abort)还是执行(execute)
    • 中心节点的可用性如何保证?

缺点

  • 同步阻塞(很慢)
  • 单点问题,宕机阻塞
  • 数据不一致,网络延时,丢包,或者部分机器故障无法执行admin命令

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.