笔记 MIT6.824 Lecture 17: COPS, Causal Consistency

前言

主要讲了有一定consistency保证的情况下有很不错性能的DB方案Causal Consistency, 其中notion of dependency一定程度上解决了写在不同servers上异步的特点


一、geo-replication

1.1 Spanner

– 通过Paxos保证强consistency
– Two phase commit
– no one site can --write on its own
– but has read transactions, consistent, fairly fast

1.2 Memchche

– 写操作只能通过primary site完成
– read非常快

1.3 新的需求

– 写操作可以再任何server上进行
– 先满足performance再满足consistency


二、预备方案One

每个server都可以有写操作,然后再同步给其它server
这个属于"eventually consistent" design

特点

  1. clients may see updates in different orders
  2. if no writes for long enough, all clients see same data
    a pretty loose spec, many ways to implement, easy to get good performance
    used in deploy
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值