The Mechanics of Scale by Dominik Tornow

ScyllaDB 148 views 34 slides Mar 10, 2025
Slide 1
Slide 1 of 34
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34

About This Presentation

Scaling distributed systems introduces massive complexity. This talk builds a clear mental model of concurrency, key challenges like consistency vs. availability, and essential techniques like partitioning and replication—helping you design and scale systems with confidence.


Slide Content

A ScyllaDB
Community
The Mechanics of Scale
Dominik Tornow
Founder & CEO

Correctness
Safety Liveness

Distributed Systems
The What

C6C5C4C3C2C1C

C1S1 C2 S2
C3S3 C4 S4
C5S5 C6 S6
Network

Distributed Systems
The Why

Correctness
ScalabilityReliability

! "
ConcurrencyPartial OrderCoordination
DistributionPartial FailureRecovery

Concurrency
P | Q

Distribution
P | Q | âš¡

P = a • b • c
Q = x • y • z

a • b • c • x • y • z
a • b • x • c • y • z
a • b • x • y • c • z
a • b • x • y • z • c
a • x • b • c • y • z
a • x • b • y • c • z
a • x • b • y • z • c
a • x • y • b • c • z
a • x • y • b • z • c

a
x
a • b
a • x
x • a
x • y
a • b • c
a • b • x
a • x • b

Recv
Req
Step w/
Side Effect
Send
Res
Send
Req
Recv
Res

Recv
Req
Step w/
Side Effect
Send
Res
Send
Req
Rec
Res

Recv
Req
Step w/
Side Effect
Send
Res
Send
Req
Rec
Res

Recv
Req
Step w/
Side Effect
Send
Res
Send
Req
Rec
Res

Recv
Req
Step w/
Side Effect
Send
Res
Send
Req
Rec
Res

Recv
Req
Step w/
Side Effect
Send
Res
Send
Req
Rec
Res
?

Scalability & Reliability
From First Principles

Redundancy
DuplicationCoordination

Logic
Gate
y = f(x1, x2, ... xn)

Logic
Gate
Logic
Gate
Logic
Gate
Logic
Gate
Majority
Gate

Logic
Gate
Logic
Gate
Logic
Gate
Logic
Gate
Majority
Gate
Majority
Gate
Majority
Gate

z = 3x = 1y = 2
x = 1
y = 2
z = 3

x = 1
y = 2
z = 3
x = 1
y = 2
z = 3
x = 1
y = 2
z = 3

x = 1x = 1x = 1
y = 2y = 2y = 2
z = 3z = 3z = 3
PartitioningPartitioningPartitioning
Replication
Replication
Replication

Client
DataDataData
ServerServerServer
ClientClient
Partitioning distributes the load
Replication distributes the data

Partitioning

Logical
Object
Physical
Object1
Physical
Object2
Physical
Objectn
One logical object is represented by multiple physical objects
Physical Object1 + Physical Object2 + Physical Objectn = Logical Object

Replication

Logical
Object
Physical
Object1
Physical
Object2
Physical
Objectn
One logical object is represented by multiple physical objects
Physical Object1 = Physical Object2 = Physical Objectn = Logical Object

Conclusion

Stay in Touch
Dominik Tornow
[email protected]
@DominikTornow
dtornow
https://www.linkedin.com/in/dtornow/
Tags