Scalability
The system performs more in the same proportion as you add resources.
Example
If 2 servers handle 1,000 users and 4 servers handle 2,000, the system scales well.
Test yourself: Scalability
Scaling
What does scalability measure?
If it goes from 1,000 to 100,000 users and copes by adding machines, it's scalable.
Databases
A delivery app has to show where each of 20,000 couriers is, updated every 3 seconds. Which database challenge is that?
20,000 positions every 3 seconds is about 6,700 writes per second, and they must be readable instantly. The database has to write and read in real time without stalling.
0/2
â–¶ PlayLessons that use it
Load balancers
Sharing the work
Clusters
Many machines, one system
Scaling
Bigger or more machines
Databases
Where data is kept
SQL or NoSQL
Picking the right database
Sharding
Splitting the database into pieces
Database federation
Several databases that look like one
Message queues
Don't keep them waiting
Requirements and estimates
Ask before you draw
