Skip to Content
构建可扩展分布式系统:方法与实践
book

构建可扩展分布式系统:方法与实践

by Ian Gorton
May 2024
Intermediate
278 pages
5h 24m
Chinese
China Machine Press
Content preview from 构建可扩展分布式系统:方法与实践
208
|
12
没有人可能获得多数选票。候选人将重置选举计时器,然后启动另一场选举。最终
会选出一个领导者。
任期编号为
N
的领导者
追随者 2 追随者 1
选举计时器到期
给自己投票
任期编号为
N
+1
的领导者
追随者
设置选举计时器 设置选举计时器
12-5Raft 中的领导者选举
Raft
因其相对简单而吸引了用户的兴趣。它在多个需要共识的生产系统中实现,包括
Neo4j
YugabyteDB
数据库、
etcd
键值存储和分布式内存对象存储
Hazelcast
等。
12.4.3
强一致性实践
2011
年以来,分布式
SQL
数据库经历了快速发展,并首次提出了术语
NewSQL
https://oreil.ly/62Aji
。这些数据库支持强一致性的方式在技术之间差异很大,让我们略
过细节,深入研究它们提供的一致性保证。在接下来的两小节中,我将简要强调两个当
代例子所采用的不同方法。
12.4.4 VoltDB
VoltDB
https://www.voltdb.com
)是最初的
NewSQL
数据库之一。它建立在无共享架构
之上,关系表使用分区键进行分片并跨节点复制。它通过在内存中维护表并将数据的快
照异步写入磁盘来实现低延迟。数据库大小限制在
VoltDB
节点集群中可用的总内存内。
VoltDB
主要部署在电信行业。
每个
VoltDB
表分区都与一个
CPU
内核关联。
CPU
内核负责执行其关联分区上所有的读
  ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
Three Essentials for Agentic AI Security

Three Essentials for Agentic AI Security

Paolo Dal Cin, Daniel Kendzior, Yusof Seedat, Renato Marinho

Publisher Resources

ISBN: 9787111750697