China's top portal architecture analysis 1

zhaozj2021-02-16  79

First, declare that the following content is my personal conjecture based on some tools. It does not guarantee the same as the architecture used in the reality, but I think that eight nine will not leave ten ^ _ ^.

The whole article I want to be divided into 2 parts: The first part is the initial basic architecture of the top 2 top portal home and channels. The second part I recorded my own experimental document. I hope that there is such an architecture in every SA.

Sina and Sohu's popularity in China can be described as unattended. They have more than 10,000 hits per day. Such a large number of visits has used limited resources for Sina and Sohu to make netizens get the fastest speed. After all, the network has left the burn-up stage and began to develop a benign development. Every money is It takes a certain echo to return. On the other hand, the technician must rack their brains and cannot let users always have access, or the accessed speed is extremely slow. This way, there is a good editor, better sales, they are also difficult to sell the advertising, waiting for them will be closed. Of course, these situations have not happened because their technicians fully utilize existing resources and play them to the extreme. Speaking of the bottom is to do Web Cache Server with Squid, and Apache provides a real web service behind Squid. Of course, use such an architecture must ensure that most of the homepage is a static page. This requires programmers to convert all the pages into a static page before feedback to the client. Well, the basic architecture is like this, let me talk about how I guessed and the specific architecture:

One of the magic weapons: NSLOOKUP

Actual combat:

Nslookup www.sina.com.cnserver: ns-px.online.sh.cnaddress: 202.96.209.5

Non-authoritative answer: Name: taurus.sina.com.cnAddresses: 61.172.201.230, 61.172.201.231, 61.172.201.232, 61.172.201.23361.172.201.221, 61.172.201.222, 61.172.201.223, 61.172.201.224, 61.172.201.22561 . 172.201.226, 61.172.201.228, 61.172.201.229aliases: www.sina.com.cn, jupiter.sina.com.cn

Here you can see that Sina is used on the home page, and some people will think that Survival will be rough. Actually, continue to see:

Nslookup news.sina.com.cnserver: ns-px.online.sh.cnaddress: 202.96.209.5

Non-authoritative answer: Name: taurus.sina.com.cnAddresses: 61.172.201.228, 61.172.201.229, 61.172.201.230, 61.172.201.23161.172.201.232, 61.172.201.233, 61.172.201.221, 61.172.201.222, 61.172.201.22361 . 172.201.224, 61.172.201.226, 61.172.201.227aliases: news.sina.com.cn, jupiter.sina.com.cn

The careful person can discover the IP number of the news from this channel and the first page, and IP is exactly the same. That is, these IPs are called Taurus.sina.com.cn on the name of the DNS of Sina, and those IPs are A records of this domain. NEWS, SPORTS, JCZS.NEWS. . . Both are CNAME records. Use DNS to do automatic polling. I don't believe it, come back one, I have a sports channel:

nslookup sports.sina.com.cnServer: ns-px.online.sh.cnAddress: 202.96.209.5Non-authoritative answer: Name: taurus.sina.com.cnAddresses: 61.172.201.222, 61.172.201.223, 61.172.201.224, 61.172 .201.22561.172.201.226, 61.172.201.227, 61.172.201.228, 61.172.201.229, 61.172.201.23061.172.201.231, 61.172.201.232, 61.172.201.233, 61.172.201.221Aliases: sports.sina.com.cn, jupiter. sina.com.cn

Other you can try it yourself. Ok, let's take a look at SOHU:

Nslookup www.sohu.comserver: ns-px.online.sh.cnaddress: 202.96.209.5

Non-authoritative answer: Name: pagegrp1.sohu.comAddresses: 61.135.132.172, 61.135.132.173, 61.135.132.176, 61.135.133.10961.135.145.47, 61.135.150.65, 61.135.150.67, 61.135.150.69, 61.135.150.7461.135.150 .75, 61.135.131.73, 61.135.131.91, 61.135.131. 61.135.131.183, 61.135.131.183, 61.135.132.65, 61.135.132.80aliases: www.sohu.com

--------------------------------------------

Nslookup news.sohu.comserver: ns-px.online.sh.cnaddress: 202.96.209.5

Non-authoritative answer: Name: pagegrp1.sohu.comAddresses: 61.135.150.145, 61.135.131.73, 61.135.131.91, 61.135.131.18061.135.131.182, 61.135.131.183, 61.135.132.65, 61.135.132.80, 61.135.132.17261.135.132 . 173, 61.135.133.47, 61.135.145.47, 61.135.145.47, 61.135.150.6561.

The situation is the same as Sina, just from the surface to see Sohu's IP number than Sina's IP number, then more servers used by each channel on SOHU than Sina? Of course, I can't say that because a server can bind multiple IP, so I can't determine how many servers have been used from the number of IP numbers. From these experiments, it can be found that SINA and SOHU have the same technique for channels, and Squid is listened to the 80 port of these IP, and the real web server to listen to another port. There is no difference from the user's feeling, and relative to the way Web Server is directly connected to the client, this way significantly saves bandwidth and servers. The speed feeling of user access will be faster.

Let me say so much, I have to go to sleep, I still have a lot of work tomorrow ~ I don't understand, remember to give me a message! ! !

China's top portal architecture analysis 2

转载请注明原文地址:https://www.9cbs.com/read-12736.html

New Post(0)