At the most basic level, scaling web servers consists of writing your application so that it can run on> 1 machine and throw more machines into the problem. No matter how you configure them, possible scaling will include a web server farm.
The database problem is more sticky. What is your read / write percentage? What kind of app is this? OLTP? OLAP? Social media? What is a database? How to add more servers to handle the load? Do we share data across multiple dbs? Or copy all changes to the load of slaves?
Your questions are asked more questions, that is, in an interview, if someone simply βhas an answerβ to a general question, for example, you posted, then they know only one way to do things, and this way may or may not be the best.
source share