FoundationDB Explained: The Database Behind Apple's iCloud - Part-I
Cracking Walnuts
0:00 / 0:00
FoundationDB Explained: The Database Behind Apple's iCloud - Part-I
45 просмотров · 2 дня назад
Cracking Walnuts
57 подписчиков
45 просмотров · 2 дня назад
Two people press "buy" on the last concert seat at the same moment. How does a database spread over many machines make sure exactly one of them wins, and that nothing is lost when a machine dies?
This video explains FoundationDB from zero, with one story: Priya and Leo racing for seat A1.
What FoundationDB is: a giant sorted dictionary of keys and values
How to design keys: tuples, subspaces and your own indexes
ACID transactions across any keys, and what "strict serializable" means
Why pick it over Postgres, DynamoDB or Spanner / CockroachDB, and when not to
The architecture: control team, transaction team and storage
How a read works (read versions, MVCC) and how a commit works
Why transactions must finish within 5 seconds
Shards, busy ranges and the ratekeeper
What happens when a machine dies
Simulation testing: millions of fake disasters, replayed step by step
Layers: Record Layer, documents, queues, SQL, and the directory layer
How Apple uses it inside iCloud / CloudKit
No database background needed.
🔗 More: https://crackingwalnuts.com
Chapters
0:00 Two people, one last seat
0:53 A giant sorted dictionary
1:59 Designing keys
3:03 Transactions: all or nothing
4:24 Why not Postgres? An honest comparison
5:27 Architecture: small specialist jobs
7:27 Reading: one frozen moment
8:20 Committing: one winner
10:03 The 5-second rule
10:29 Scaling with shards
11:09 When a machine dies
12:05 Simulation testing
13:16 Layers on top
14:30 How Apple uses it
15:38 When should you pick it?
16:18 Recap