Unit 3: Data: databases, storage and scaling data

Choose the right database, keep data correct with transactions, make queries fast with indexes, and scale data with replication and sharding.

The big picture

App servers are easy to scale; data is not. Most deep dives in interviews end up here: which store, which key, how many copies, how to split it, and what consistency you promise.

Lessons in this unit