<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Glen Lumanau &#187; global load balancing</title>
	<atom:link href="http://lumanau.web.id/tag/global-load-balancing/feed" rel="self" type="application/rss+xml" />
	<link>http://lumanau.web.id</link>
	<description>About Glen Lumanau</description>
	<lastBuildDate>Fri, 23 Jul 2010 10:08:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Global Load Balancing Like Google Does</title>
		<link>http://lumanau.web.id/2009/02/12/global-load-balancing-like-google-does.html</link>
		<comments>http://lumanau.web.id/2009/02/12/global-load-balancing-like-google-does.html#comments</comments>
		<pubDate>Thu, 12 Feb 2009 08:57:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[global load balancing]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[load balancing]]></category>

		<guid isPermaLink="false">http://www.lumanau.web.id/?p=223</guid>
		<description><![CDATA[For over 3 months ago, I&#8217;ve implemented a Global Load Balancing like Google does. I&#8217;m coming from Indonesia, so that I will take an example if you&#8217;re accessing Google from Indonesia If you&#8217;re accessing www.google.com, they will redirect you to the appropriate Google domains in your country. For me, when I tried to open www.google.com [...]]]></description>
			<content:encoded><![CDATA[<p>For over 3 months ago, I&#8217;ve implemented a <a href="http://en.wikipedia.org/wiki/Load_balancing_(computing)">Global Load Balancing</a> like <a href="http://www.google.com">Google</a> does.</p>
<p>I&#8217;m coming from Indonesia, so that I will take an example if you&#8217;re accessing Google from Indonesia</p>
<p>If you&#8217;re accessing www.google.com, they will redirect you to the appropriate Google domains in your country.</p>
<p>For me, when I tried to open www.google.com , they will redirect you to www.google.co.id.</p>
<p>I don&#8217;t know exactly how does Google redirect the traffic. But what I&#8217;ve done is 99% similar like Google.</p>
<p><span id="more-223"></span></p>
<p>I already used this on <a href="http://www.kompas.com">1 of the websites that I maintaining right now</a>.  The subdomain that&#8217;s already using this method is http://img.ads.kompas.com</p>
<p>You can try to access http://img.ads.kompas.com/banner/voa_obama.jpg . If you&#8217;re from Indonesia, it won&#8217;t do anythink (as I described on the Load Balancer). But if you&#8217;re coming from out of Indonesia, it will redirect you to http://us.img.ads.kompas.com/banner/voa_obama.jpg</p>
<p>Here&#8217;s what I got if accessing from Indonesia</p>
<blockquote><p>squid:~# <em>curl -I http://img.ads.kompas.com/banner/voa_obama.jpg</em><br />
<strong>HTTP/1.1 200 OK</strong><br />
Date: Fri, 13 Feb 2009 02:30:30 GMT<br />
Content-Type: image/jpeg<br />
Connection: keep-alive<br />
Content-Length: 38558<br />
Last-Modified: Wed, 05 Nov 2008 07:44:08 GMT<br />
Accept-Ranges: bytes</p></blockquote>
<p>If I&#8217;m accessing from US</p>
<blockquote><p>[root@us1 ~]# <em>curl -I http://img.ads.kompas.com/banner/voa_obama.jpg</em><br />
<strong>HTTP/1.1 302 Moved Temporarily</strong><br />
Date: Fri, 13 Feb 2009 02:31:48 GMT<br />
Content-Type: text/html<br />
Content-Length: 161<br />
Connection: keep-alive<br />
<em><strong>Location: http://us.img.ads.kompas.com/banner/voa_obama.jpg</strong></em></p></blockquote>
<p>So it&#8217;s almost the same with Google. With this method, I can do the same with Google. Which are redirecting you to www.google.co.id if coming from Indonesia, or redirect you to www.google.co.uk if you&#8217;re coming from UK, and so on</p>
]]></content:encoded>
			<wfw:commentRss>http://lumanau.web.id/2009/02/12/global-load-balancing-like-google-does.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
