Horizontal vs Vertical Scaling
You are a computer programmer who like to solve real world problems with the help of coding knowledge. Amazingly you constructed something very meaningful and someone liked your code so much that she is ready to pay you for using your code.
Your code got popularised and slowly you had a large audience coming to you which started asking your codebase.
Its nearly impossible for you to ship your machine with code to each user who is requesting for your codebase, so you decided to create something called as “Application Programming Interface (APIs)” which others could use to access your codebase through internet passing required details.
Scalability
Till now you made your code available as an API for users, but a point occurs that your code on your machine is not able to handle all the incoming requests for which your think two ideas:-
- Buying a bigger machine
- Buying more machines