System Design
4. Database FundamentalsAnimated
Database Normalisation
Organising tables to remove duplication.
The idea
Normal forms split data so each fact is stored once, preventing update anomalies.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Presentation tier: the browser shows the interface.
- step:
- 1/4
- at:
- Browser
1/9
The green dot is a request moving through the system.
Step by step
- 1Find repeated data
- 2Move it to its own table
- 3Link with foreign keys
- 4Join when reading
Where it is used
Transactional systems.
Watch out for
Too many joins can slow reads, which is why denormalisation exists.