Replication
Keeping copies of the same database on several servers. Writes are copied from one server to the others.
Example
One database in Montevideo and two copies on other servers: if one disk breaks, the data is still on the other two.
Test yourself: Replication
Replication
What is replicating a database?
With 1 main and 2 copies, the data lives on 3 servers at once.
Replication
The master goes down 1 second after saving an order it hadn't copied yet. What happens?
If copying takes 2 seconds and the master falls at second 1, the slaves never get that order.
0/2
â–¶ PlayLessons that use it
Cache
What's asked often, close at hand
Replication
Copies of the database
ACID and BASE
Two promises about data
Sharding
Splitting the database into pieces
Consistent hashing
A ring to split the load
Event-driven architecture
Announcing what happened
CQRS
Write on one side, read on the other
Disaster recovery
Running again after the disaster
Requirements and estimates
Ask before you draw
The design steps
From data to bottlenecks
Designing a URL shortener
A long link in 7 characters
