What is server?
A server is a computer like we have in our home. if we want to run our app we need to keep our computer open. so useally we don't do this that iswhere cloud computing comes in. basically we rent from big companies like AWS Google Azure they have the computer up and running on the cloud 24/7. we run our app backend to their server. so there are limitations we rent specfic resources for our application.
How can we use it?
so the resources are limited we need to use it properly we need to optimize so we save our resources so does the cost that is where optimization comes in. there are a lot of ways we can optimize as our app grows.
- we can do by database indexing.
- we can do by ceaching
- we can do by optimizing logic etc...
How do we scale?
that is where our scaling comes in. there are 2 ways we scale as our app grows
- Horizantal.
- Vertical.
