Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
LLAMS36636yVertical scaling is where you manage more load by getting a bigger box.
Horizontal scaling is where you get multiple smaller boxes and a load balancer to direct traffic between them.
Basically:
vertical = moar power
horizontal = moar computerz -
LLAMS36636y@irene Pretty much. Of course vertical scaling only works for a few use cases. Adding more cores and RAM will only get you so far. Also theres still a single point of failure. With horizontal scaling you can quickly/cheaply provision instances on demand and if one fails you just redirect the traffic to another with zero downtime. IMO for most use cases horizontal is more flexible and the better option. Also with things like AWS and Azure you can get someone else to handle all the scaling and load balancing for you (eg. AWS Elastic Beanstalk)
-
LLAMS36636yTrue, certainly if you are hosting on your own hardware anyway. Much easier to just add MOAR POWER. But with things like ElasticBeanstalk you can basically upload your application and it will just run and scale as it needs to and you dont have to do anything at all. One thing to consider with horizontal is obviously “cold starts”. When a brand new instance gets provisioned it will take a minute or two to get going and start up. I know on my project we have 2 instances of our web app and rest API running at any one time, and can add more as needed.
-
sonrisa14436yBigger box is usually higher, so it grows vertically, but if you put two servers next to each other, they grow horizontally.
-
@marci010101 well if you're thinking that way then it's all vice versa: blade type servers are stacked over each other in the rack, which makes server++ a vertical scaling 😁 and bigger boxes tend to be heavier which makes it a bad idea to make the box higher - it's weight center would be too high to keep the server stable on the floor. Hence the box will more likely be wider. Here's your horizontal scaling 😁
p.S. Once again, it's all vice-versa :)
Related Rants
What is horizontal and vertical scaling? Can somebody please explain in easy manner?
question
nginx
nodejs
scaling
backend
server