Why does the address of some sites contain number after www?

Asked

Viewed 14,697 times

10

2 answers

16


Yes, it is possible!

This is usually done by a process called balanceamento de carga. Load balancing is basically split the load (i.e., requests from sites that in turn require some processing power and memory on a web server) over multiple web servers, rather than having um único servidor para fazer todo o trabalho. It usually consists of a unidade central which monitors the load of other servers, and distribui as requisições sent to a server that has the menor carga currently. www3 is one of those servers that receive Web requests from controlador central.

For a normal site, this is unnecessary unless it receives thousands of requests per second (e.g., Google), but for complex web applications this process keeps the web application performing well, as well as increasing availability (if one of these servers fails, the rest will still be able to handle the requests).

If you want to learn more about load balancing, you can start here.

Those números referem-se the names of the servers in the load balancing pool, since each server needs to have a unique name. They could also have taken a different naming convention, such as naming each server after a planet. In this case, you would see a URL like namekuseijin.goku.com.br or planetavegeta.goku.com.br

Mas se WWW.GOOGLE.COM não tiver um www3? Então como será feito o balanceamento de carga?

There are several mechanisms that can be used to do load balancing; most major sites use a mix of them.

Primeiro, most of them use a CDN (rede de distribuição de conteúdo) that hosts its content on geographically spread servers, so that client requests can be met by nearby servers. In most cases Cdns are practically a necessity on site that has a lot of media like Tumblr, Flickr, Imgur, Youtube, etc. They are not so necessary for sites that have only content in text, for example.

Segundo, if you do a DNS search on www.google.com (for example, host www.google.com using Linux), you will see that it gives multiple responses to the same host address:

www.google.com has address 74.125.226.81
www.google.com has address 74.125.226.80
www.google.com has address 74.125.226.83
www.google.com has address 74.125.226.84
www.google.com has address 74.125.226.82

This means that qualquer objeto(images, videos, etc.) from www.google.com can be provided by one of these addresses; if everyone receives an object randomly from one of these addresses, então, a carga ficará balanceada entre os endereços.

  • +1 very good your answer, however I suggest you give a check on this topic that can help you in formatting your publications: How we should format questions and answers?

  • I’ll give a read, I’m new user and I haven’t learned all the features of the site.

  • 1

    No problem, it’s just a suggestion actually and you can read another time if you prefer, you’re getting a lot of points so you don’t have to stop what you’re doing ;-) I put it here just for you to know, because as it explains there nobody is obliged to do it that way.

4

Complementing the response of Paulo Costa, if you want to put an address www1, www2, www10.. on your website, just go to your domain’s DNS manager and create a record type A as an example below (your manager might be a little different):

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.