First, the Primer
Just brush the microblog, see It Technology blog Big study sent this microblogging, so, want to from the perspective of web development (may be biased toward the front-end angle) to say this problem. If this is an interview question, I think it's good to use a diagram to illustrate the problem, not to mention a few hours. Of course, as a front-end & node. js, the angle will be inclined. If there is any mistake, please criticize the advice.
Second, my idea to let the diagram speak
Iii. Summary
(1) User-draw data;
(2) The server returns data based on user information & URI;
(3) The middle process and optimization is very complicated, according to the picture just painted, there are a lot of things to say;
(4) Pre-rendering or not, depending on server performance & consumption of client performance equalization as a reference indicator;
(5) Now my practice:url-> front-end (cache)->nginx load Balancing->node.js (merging request with computer room, obtaining resources based on authentication information, using multicore) + Cache-Db/cache DB
What happened from the input URL to the completion of the page load (by Vczero)