GithubHelp home page GithubHelp logo

hhy5277 / distributed-transaction-notes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clsaa/distributed-transaction-notes

0.0 1.0 0.0 26 KB

分布式事务解决方案;最终一致性(本地事务型);最终一致性(可靠消息型);最大努力补偿;TCC型

distributed-transaction-notes's Introduction

分布式事务解决方案

笔记阐明了系统中常用的分布式事务解决方案

  • 第一节中对分布式系统数据一致性问题产生点进行分析,并对各种分布式事务方案及其涉及的概念进行介绍

  • 第二节中首先对消息发送的一致性与接口的幂等性进行介绍, 然后对基于可靠消息(独立消息实现和本地事务实现)的两种最终一致性实现方案进行介绍.

  • 第三节中对基于可靠消息(本地事务实现)的最终一致性方案的实现方法进行介绍,此方案适用于大部分场景,且系统之间耦合性较低,推荐使用.

  • 第四节中对最大努力通知型方案进行介绍,此方案实现最为简单,只需要生产端实现一个查询接口,消费端根据一定策略定时查询,但数据一致的实时性差.

  • 第五节中介绍了TCC型方案,此方案已经有较为成熟的框架支持:tcc-transaction,可以直接使用,但其源码基本没有注释,在笔记中详细记录了框架的使用方法与源码分析.TCC方案适用于数据实时性要求较高的服务,如:转账充值等.

  • 目录

distributed-transaction-notes's People

Contributors

clsaa avatar

Watchers

 avatar

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.