We help IT Professionals succeed at work.

Pros and Cons of proxy servers?

3,005 Views
Last Modified: 2012-08-13
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.
Comment
Watch Question

Top Expert 2008
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2014
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Top Expert 2008

Commented:
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!

Author

Commented:
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.
Top Expert 2008

Commented:
I would choose the dual load balanced option.

Cheers.
CERTIFIED EXPERT
Top Expert 2014

Commented:
How much of the content is truly dynamic?  I would assume that the images are really static images.
Top Expert 2005
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
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?

Author

Commented:
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.
CERTIFIED EXPERT
Top Expert 2014

Commented:
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.
Top Expert 2005

Commented:
> 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?
Dynamic content, single hosted location, and the visitors to the site are from all over the map.....spend the money beefing up the servers

Author

Commented:
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.
CERTIFIED EXPERT
Top Expert 2014

Commented:
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.

Author

Commented:
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
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.