Why ww2 sub domains?

You could 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?

Curious to know, Here is my take!

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.

Technically, the initials before the primary domain name (e.g. the “mail” in mail.yahoo.com) can be best thought 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.

Oftentimes, ww{x} is used to indicate a particular server of a set of mirrored servers. If properly configured, I could have http://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.

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:

*Certain users always use certain servers. This can be arbitrary or based on some criteria (user type, geographic location, etc);
*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
*Certain activities are always on certain machines.

3 other 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 …


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: