Deploying a scalable Web caching solution

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

Topics

Web, Caching

COMMENT

Web caching provides for a means to store frequently accessed Web pages and objects on a system that's closer to the user than the Internet Web server hosting those objects. That speeds up performance when those objects are accessed again.

A few years back, the theory was that super-high bandwidth Internet connections would make Web caching unnecessary — but it didn't work out that way. Even the fastest fibre optic Internet connections, at 30-45 Mbps, are slow in comparison to typical LAN speeds of 100 Mbps to 1 Gbps, so performance is still an issue. In addition, caching increases availability since the cached copy of the object can still be accessed even if the hosting Web server is down or unreachable due to network problems. Caching can also reduce the cost of Internet connectivity if your company pays by the megabyte.

So it looks like Web caching is here to stay and gaining in popularity. Caching can be used to your advantage in even the smallest business, and good caching solutions will scale to the enterprise level.

Caching concepts
There are two broad categories of Web caching:

Forward caching
Where copies of Web objects from Internet servers that are frequently accessed by your users are stored on your local network.
Reverse caching
Where copies of the Web objects on your own internal Web servers are stored on a proxy server at the edge of your network to increase performance for outsiders who visit your sites.

Web caches can be deployed at different levels:

Local cache:
Cached copies of Web objects are stored on a local computer. Most popular Web browsers keep a cache of previously accessed objects by default. For example, Internet Explorer calls them temporary Internet files. Copies cached locally are only helpful when the user accesses the pages frequently from the same machine.
Proxy cache:
Proxy servers are separate machines that cache Web objects for multiple users/client computers in the organisation. They are computers that sit between the client and the hosting Web server, and they are more efficient than local caches because when a Web object is accessed by any user or computer on your local network, the cached copy is then available to any other user/computer that wants to access that object, without going out to the Internet server to retrieve it. A proxy cache can be integrated with a firewall at the network's edge.

Microsoft's ISA Server includes both firewall and caching proxy server, as do BlueCoat's appliances. Caching servers can also be separate machines, running free caching software or commercial products such as:

Caching proxies are often marketed in appliance form factor, such as Cisco's Content Engines and Stratacache's Axcela series.

Scalable caching solutions
As your business grows, a single Web caching server may not be able to handle all the traffic or store enough Web objects. In that case, you can expand your caching solution to create a caching array — a group of caching proxy servers that work together to distribute the caching load across the group. This also provides fault tolerance in case a caching server goes down.

To operate in an array, your caching servers must be able to use protocols for communicating with one another, such as:

  • WCCP, which is used by Cisco caching products and open source proxies such as Squid.
  • ICP, also supported by Squid and BlueCoat.
  • CARP, which is used by ISA Server Enterprise Edition to manage failover and load balancing for arrays of caching servers.

CARP can support almost unlimited linear scale-out to meet the needs of fast-growing companies. When a server is added to or removed from an array, CARP adjusts dynamically and reassigns URLs to effectively distribute the load.

Caching arrays can be arranged in either a hierarchical or distributed architecture. With distributed caching, all of the proxy servers in the array are on an equal footing and the load is distributed across them. With hierarchical caching, proxies are configured in a chain where they are at different levels so that the servers or arrays connect to other servers or arrays that are closer to the Internet. This way, the cached content is kept as close to the users who will need it as possible.

Arrays are highly scalable because you can add servers to an array, or add array levels to a hierarchical architecture, without having to upset your current caching solution.

Another scalability issue is the ability to use caching to reduce bandwidth for branch office networks. The branch office proxy might not have a direct connection to the Internet, but can use a dialup connection or office-to-office WAN connection to request Web objects from the upstream proxy server at the main office.

Another option is to use a service such as that offered by Akamai for Web-based applications that need to be made available to customers on a global scale. Their Web Application Accelerator service optimises performance by:

  • Dynamically mapping requests to their edge server, and monitoring Internet routes to send transactions over those that are fastest and most reliable.
  • Using compression technologies and pre-fetching to minimise bandwidth usage.
  • Securing Web transactions with Secure Sockets Layer (SSL).
  • Storing Web content based on customised rules specified by your company.

For specialised applications such as e-commerce, you might consider a solution such as the OracleAS Web Cache, which is deployed between the Internet and your application Web servers, with an Oracle database on the back end.

Talkback

well this was a good report !
verry usefull
Rup

via Facebook 8 April, 2006 15:17
Reply

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

Freebies202

Duplicate comments are not made intentionally. Its very good to know that now you are keeping check on this problem because sometimes a commenter...

2 hours ago by Freebies202 on Microsoft fixes blog comments, speeds up blogs with open source
kevinmchapman

"the very significant number of users" and "many (most) of us" - you have no evidence for these statements. It is a fact that most users are saying...

10 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

12 hours ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

13 hours ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

15 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

16 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

17 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

18 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

18 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

19 hours ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

21 hours ago by GHar123 on ACTA stumbles in Germany
JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

1 day ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

1 day ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

1 day ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

1 day ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

1 day ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

1 day ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

1 day ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint