views:

444

answers:

6

I have seen on the web some domain names having prefix of ww2 or ww3 or so (ww2.somedomain.com, ww3.yourdomain.com). And these happen mostly when travelling from a page to page. What would be the reason of having such subdomains? Is there anything special about them or are they just another sub domain? I mean, are they useful in any particular context?

Was just curious to know. Thanks.

+4  A: 

Technically, the initials before the primary domain name (e.g. the "mail" in mail.yahoo.com) can be best though of as a machine name, identifying the web server/mail server, whatever. They can also identify a group of machines (a web farm).

So the person building up that machine can call it anything they want. The initials www are a (somewhat arbitrary) convention.

Robert Harvey
A: 

nothing special, you can use them if you like them....

Dani
+10  A: 

People running large(-ish) sites used to do this when they needed to break up the load between more than one server. One machine would be called www then the next one would be called www2, etc.

Today, much better load balancing solutions are available that don't require you to expose your internal machine naming conventions to the browser clients.

Greg Hewgill
but you can call them kiki1 kiki2 kiki3 as well, and not use the ww prefix. it's just the server's owner choise. nothing special in the ww name.
Dani
@dani: but why the web server has to be `www.domain.com` that's only conventions
RageZ
www it's a convention, ww2, ww3 it's just it guy's choises. As mention above modern load balancers will not expose the server name anyhow... you'll see all servers as www.domain.comI call them web1, web2 ect....
Dani
@greg: That clearly answers my question. I was actually wondering why any developer would use ww2 instead of any other name. Now it makes sense that it is to identify from which mirror the page is loading. Thanks!
Nirmal
+2  A: 

I can see 3 possibilities

  • make the browser load resources more faster. the browser would open a fixed number of connection to same domain not to load the server
  • they are using more then one server so they can share the load between servers
  • separate some content to a separate virtual host or server. some kind of organization ...
RageZ
@luvieere: Thanks for the English corrections ^^ need to polish my English
RageZ
@RageZ: Spelling "organisation" with an 's' (the way you had it before the edit) is actually more acceptable in several English-speaking countries than spelling it with a 'z'. Not trying to confuse you or anything ;)
ThisSuitIsBlackNot
@ThisSuitIsBlackNot: that's getting messy!
RageZ
+2  A: 

Oftentimes, ww{x} is used to indicate a particular server of a set of mirrored servers. If properly configured, I could have www.mydomain.com point to my web site on a load balancer, while I could use ww1, ww2, ww3, etc to access the site guaranteed from a specific LBed server.

phoebus
+2  A: 

Typically it's a partitioning strategy. When sites get sufficiently large that they can't run (or run well) on a single server you then have to look at solutions for scaling the application out horizontally (ie more servers) rather than vertically (ie bigger servers).

Some example partitioning strategies are:

  1. Certain users always use certain servers. This can be arbitrary or based on some criteria (user type, geographic location, etc);
  2. When a user gets a session that session is assigned to a particular server (sometimes called "sticky sessions" although this can also be used where such different machines are transparent); and
  3. Certain activities are always on certain machines.
cletus