System Design
4. Database FundamentalsAnimated
Database Management Systems (DBMS)
Software that stores, queries and protects data.
The idea
A DBMS handles storage, indexing, query processing, transactions, security and recovery so applications need not manage files directly.
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
- 1Application sends a query
- 2The parser and optimiser plan it
- 3The engine reads or writes storage
- 4Results return and the log keeps changes durable
Where it is used
Every application that keeps data.
Watch out for
Picking a database by fashion instead of by access pattern.