Limitless

Limitless

Horizontal vs Vertical Scaling

Horizontal vs Vertical Scaling

Subscribe to my newsletter and never miss my upcoming articles

When we talk about scaling a server, we often refer to two things

  1. Scaling up (vertical scaling)
  2. Scaling horizontally

Scaling up means adding more compute resources to your server. If your server had 16 GM RAM, scaling up by 16 GB increase it to 32 GB.

Vertical Scaling

Scaling horizontally means adding more servers to your environment. If you initially worked with 16 GB RAM servers and would like to get to 64, you could add 3 more 16 GB servers.

Horizontal scaling

Which to choose and when?

Vertical scaling

Choose vertical scaling if your load increased or is expected to increase by a fixed/fairly-constant amount.

Due to limitations on hardware upgrades, there are limits to how much computing power can be added to one machine. So vertical scaling isn't always possible. That's where horizontal comes in.

Horizontal scaling

Horizontal scaling offers you the opportunity to technically add unlimited power to your server stack if resources are unlimited. Use horizontal scaling if your app needs more uptime guarantee or the load it receives exponentially increased or is expected to increase.

Not handling scaling yourself

If you don't want to handle scaling, your best option is serverless functions. Serverless functions abstract scaling so you only focus on your app. The best feature of serverless functions is that you only pay for what you use.

Thanks for reading. Adios ✌🏾🧑.

Β 
Share this