Question

Pros and Cons of proxy servers?

Asked by: Westez

I don't have a problem to solve but I'm interested in what the Experts have to say about the pro's and con's of proxy servers.  Specifically putting a proxy server that does caching in front of a web server. On the pro side, as I understand it the proxy caches the web server responses, thus relieving some of the load on the web server.  It can also have a security benefit because all requests are filtered through the proxy, and only the proxy is actually talking to the web server.
On the con side, you have the added expense of hardware and software, I work in a Windows shop.  Plus the proxy can become a bottleneck, or need repair of replaced.

I have a friend who works in a mixed enviroment, Linux and Windows, and who works on the Linux side of the fence.  He always sets up a Squid proxy in front of his Apache web servers.
The gains in performance are impressive, along with the decrease in the load on the web server.

I've talked with others who say that proxies are a pain and not worth the aggravation.  What are the views of some of you Experts out there who have experience with setting up proxie caching servers in front of web servers.  I work with IIS, but I'm no expert.  Windows 2003 Server and IIS v6.

Thanks for taking the time to reply and helping out those of us who are not experts.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-05 at 14:33:46ID24545211
Tags

Proxy Caching IIS Web servers

Topics

Microsoft IIS Web Server

,

Windows 2003 Server

,

Apache Web Server

Participating Experts
4
Points
500
Comments
16

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Squid Proxy
    Dear Experts I am using squid proxy as our internet sharing purpose, its working fine now i want to block some web site as well as yahoo messenger and msn messenger , how it ll configure in squid.conf file? and second thing i want to know which ip in our local network uses ...
  2. For proxy only – which is faster – squid or apache?
    We are upgrading our current proxy server which has squid with caching. We only want to proxy and no longer need caching. Assuming the latest version which is faster squid proxy with caching turned off or apache only acting as a proxy server and web serving turned off? Is...
  3. For proxy only – which is faster – squid or apache?
    We are upgrading our current proxy server which has squid with caching. We only want to proxy and no longer need caching. Assuming the latest version which is faster squid proxy with caching turned off or apache only acting as a proxy server and web serving turned off? Is...
  4. Squid Proxy Cascading
    I want to cascade my transparent proxy: 172.24.1.1 to the proxy of my ISP 41.220.80.50 8080. I have attacthed the output of: "grep -v "^#" /etc/squid/squid.conf | sed -e '/^$/d' " from my squid cocnfguration.
  5. Apache Bottleneck
    Hi, I have been trying to solve a bottleneck in my server whereby Apache reaches the MaxClients value then crashes. I have done significant research into log files - the Apache error log (at LogLevel debug), MySQL error log, MySQL slow queries log, MySQL general log and the ...
  6. ISA Vs Squid Proxy
    I am using Microsoft ISA for the users to access the applications internally. Users hit the ISA server to access the application serverrs internally through LAN. I want to replace ISA server with SQUID proxy running on Linux platform. Users will be accessing the URL which sho...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: meverestPosted on 2009-07-06 at 03:23:31ID: 24783811

Hi,

any decent modern web server will be able to do caching on web content - including dynamic.  Why would you want another server to cache the cached content, I have no idea.

improvement in performance will only be 'impressive' when the web server is not well resourced to begin with.

personally, I would say that 9 times out of 10, a proxy server will provide no benefit at all - in fact quite the opposite.

Cheers.

 

by: giltjrPosted on 2009-07-06 at 04:58:48ID: 24784271

It depends on your setup.  If you have a single web server serving up static content that has the proper capacity no a proxy server (actually it is called a reverse proxy server) will not help.

However, say your web server is really an application server and say you have 2, 3, or 20 of them.  Then a proxy server (actually at least two clustered for fail over) will help.

Proxy servers can help offload work from the web server in a couple of ways.  Caching static content, SSL offload, dynamic compression, and load balancing.  This can offload enough work from the back-end servers that you can either handle more work with the same number of servers or have fewer servers.

They do add hardware and software, but generally their cost is much less than a application server and depending on your enviroment can reduce the number of back-end servers you need.

 

by: sharepointguru14Posted on 2009-07-06 at 13:33:23ID: 24788978

fairly good summary above by qiltir. I would also add that they provide great performance boosts if you have a global orgainization that you have people all over the world hitting a server in a single space. Especially if that web server or application server is serving up fairly large files. You can from a single source push out all of the content to the edge proxy servers therefore increasing load time for your remote users (pulling content from a edge device in their local office rather than from across the globe) this loads pages quicker makes downloads faster and greatly reduces the bandwidth used/load on your network.

 

by: meverestPosted on 2009-07-06 at 17:14:35ID: 24790517

good point from spguru! :-) - multiple proxy servers ahead of a single application server may be a low cost way to boost performance of a single application without the complexity of a load balanced web app.

I maintain that one proxy <-> one web server is a waste of resources.

Cheers!

 

by: WestezPosted on 2009-07-06 at 20:17:51ID: 24791208

Good stuff guys.  Let me ask you this, you have a single web server that's due to have it's hardware upgraded.  Would you buy a pair of beefy servers and set them up for load balancing?  Or buy one beefy one, and two lesser ones and set them up as proxies?  They serve up dynamic content that include a ton of images to a global audience from a single location.

 

by: meverestPosted on 2009-07-06 at 20:23:48ID: 24791236

I would choose the dual load balanced option.

Cheers.

 

by: giltjrPosted on 2009-07-06 at 20:37:26ID: 24791289

How much of the content is truly dynamic?  I would assume that the images are really static images.

 

by: ravenplPosted on 2009-07-06 at 21:51:33ID: 24791519

Some time ago, I was struggling with dos attack on web server. Various IPs were connecting to the server, and not finishing the request.
Putting squid proxy before the server bumped the dos limit greatly, from hundreds to thousands requests before actual dos.

 

by: sharepointguru14Posted on 2009-07-07 at 06:06:32ID: 24793798

Westez, Where will the users be coming from on the majority basis? 3 different sites or more? and where would you put the two proxies?

 

by: WestezPosted on 2009-07-07 at 14:52:12ID: 24798871

meverest - thanks man, I'm just trying to learn something here.  The longest journey begins with a single step.  And it sure helps to follow those who have already been down the path.

giltjr - Let me get back to you on how much of the content is dynamic.  I'll see if I can come up with a percentage.  I know there's a lot of ASP pages, and some .NET and C# that's tied to some SQL db's.

ravenpl -  Are you saying that by putting Squid before the web server helped by limiting the number of requests from thousands to hundreds?  I thought a reverse proxy in front of the web server would stop a dos from happening at all.

spguru14 - We're an academic institution so the sites are educational and used by folks from around the globe.  And we only have one location, so the proxies would be located here in front of the web server.  I'm guessing that your asking if we have multiple locations, similar to a branch office in another city or country that ties back to the home office.

 

by: giltjrPosted on 2009-07-07 at 19:23:19ID: 24800097

The reason for my question is that if the majority of the content served up is static, then proxy servers would be a benefit.  If the majority is dynamic, then spend the money on the servers.

Since you have users around the globe, the locating proxies in various places around the world and doing load balancing around the world.  I don't know what your budget is, but there are companies (like Akamai) that will do the proxy function for you.  Of course it does cost money and I have no clue how much.

A reverse proxy will lessen the possibility of a DOS, it does not remove it.

 

by: ravenplPosted on 2009-07-07 at 22:28:08ID: 24800809

> I thought a reverse proxy in front of the web server would stop a dos from happening at all.
Eventually the proxy can be dos-ed as well. Isn't it?

 

by: sharepointguru14Posted on 2009-07-08 at 05:38:12ID: 24803007

Dynamic content, single hosted location, and the visitors to the site are from all over the map.....spend the money beefing up the servers

 

by: WestezPosted on 2009-07-08 at 09:45:43ID: 24805717

ravenpl - >>Eventually the proxy can be dos-ed as well. Isn't it?

I wasn't sure, so hence the question.  Thanks to all for schooling me.
While we're on  the subject of dos.  Is it possible to protect your sites from such attacks?  I've just read about North Korea being a suspect in taking down several of our governments sites.  I figure the folks protecting those sites know far more than I, and they got taken down.

Regarding the servers, thanks for the advice, we'll get a couple of beefy ones and set them up with load balancing.  I've been searching through EE on the topic of load balancing, and have read that NLB is built in to Windows 2003, so I'm guessing that it's also included in Windows 2008 64 bit which is what we'll be installing on the new servers.

 

by: giltjrPosted on 2009-07-08 at 09:56:21ID: 24805831

You really can't protect yourself from a DOS.  No matter what you do, there will be some limitation to the "capacity" you have and one of the possible DOS's is to make more requests that you can handle.

NLB is there on Windows 2008.

 

by: WestezPosted on 2009-07-09 at 07:10:06ID: 24813822

Guys I'm going to close this one out.  Many thanks to all of you for taking the time to reply.  Hopefully some others will benefit from this thread.

Cheers

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...