Clients -> CDN -> Nginx -> Static Date or Dynamic Data or Cache -> SQL Database or NoSQL Database…
-
Clients request a URL;
-
CDN interpret URL and route to the nearest network;
-
When request safety pass the 1st network, will get to the distribution layer such as Nginx(whatever the public cloud or private cloud);
-
The Nginx cluster will distribute request basing on what type it belongs to:
The static request will fetch data from static server.
The dynamic request will fetch data from the app server base on what business type it belongs to.
The hot data are preferable store in a cache server such as Redis.
-
When a request pass to the app server will get a series of verification when logically is safety, will select related data from the database.