V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
polythene
1D

跟 etcd 学习数据库中事务隔离的实现

  •  
  •   polythene · Oct 15, 2019 · 1559 views
    This topic created in 2386 days ago, the information mentioned may be changed or developed.

    etcd 将底层 MVCC 的版本信息暴露了出来,在官方的客户端中,丧心病狂的用这些版本信息封装出了一套基于乐观锁的事务框架 stm,还实现了不同的隔离级别。

    关键是这个实现只有 300 多行代码,是我们学习数据库事务隔离级别的绝佳入门资料。

    详细分析见这里: https://blog.betacat.io/post/2019/08/learn-transaction-isolation-levels-from-etcd/

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4060 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:23 · PVG 18:23 · LAX 03:23 · JFK 06:23
    ♥ Do have faith in what you're doing.