As the number of users and concurrency increases, a single server has a performance problem, it is necessary to separate the application and database, the separation of the entire Web site into three servers: Application server (or Web server), database server and file server. The three servers on the server configuration requirements are not the same, the application server needs to deal with a large number of business logic, so the need for faster and more powerful CPU, the database server needs fast disk retrieval and data caching, so the need for faster hard disk (now generally use SSD) and larger memory, The file server needs to store a large number of user-uploaded files, so a larger disk size is required.
Database-to-application server-separated architecture
The separation of the database from the application server significantly improves the performance of the site, including concurrent processing capabilities. This architecture requires only one thing: to change the database connection address in the original application from local to another server.
Large Web site Architecture Evolution (2) Separation of database and application server