Scalability and Performance · Spreading the load
Vertical vs horizontal scaling
Scaling up buys a bigger machine; scaling out adds more machines. Up is simpler until you hit the ceiling or the outage; out needs stateless servers but keeps growing.
- Time20 min
- LevelDeveloper
- Experiments1 live
- Check6 questions






Find state list everything a server remembers between requests.
Sessions move them to a shared store or a signed cookie.
Files write uploads to shared object storage, not the local disk.
Jobs make scheduled tasks run once, not once per server.
Balance put a load balancer in front and start a second copy.
Test crash one server under load and check that users do not notice.