Horizontal Scaling
Last updated
What is Horizontal Scaling?
Load balancers can also help with horizontal scaling, improving performance and availability. Scaling out using commodity machines is more cost efficient and results in higher availability than scaling up a single server on more expensive hardware, called Vertical Scaling. It is also easier to hire for talent working on commodity hardware than it is for specialized enterprise systems.
Disadvantages of horizontal scaling
- Scaling horizontally introduces complexity and involves cloning servers
- Servers should be stateless: they should not contain any user-related data like sessions or profile pictures
- Sessions can be stored in a centralized data store such as a database (SQL, NoSQL) or a persistent cache (Redis, Memcached)
- Downstream servers such as caches and databases need to handle more simultaneous connections as upstream servers scale out.
More in stage 11: Load Balancers
Horizontal Scaling: common questions
Can I learn Horizontal Scaling in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Horizontal Scaling in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Horizontal Scaling tutorial for beginners?
It is lesson 36 of 147 in the free System Design roadmap, in stage 11, Load Balancers. If you are new to System Design, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.