Add Browser Gate to GZip Servlet Filter

J

Java script Dude

This is an solution (kind of) to the issue I had with servelt filters.

Basically, don't use servlet filters for your gzip compression on the
server. Instead put apache in front of your web server and have apache
do your compression (as well has serving up static content).

Apache uses native c code which is faster and uses less resources than
Java.

Also Apache can be configured to switch compression settings based on
browser detected. Although this could be problematic for IE browsers
that are fully spoofing as Mozilla but then again, they should not be
doing that anyway :]

Regards,

T
 
S

shakah

Java said:
This is an solution (kind of) to the issue I had with servelt filters.

Basically, don't use servlet filters for your gzip compression on the
server. Instead put apache in front of your web server and have apache
do your compression (as well has serving up static content).

Apache uses native c code which is faster and uses less resources than
Java.

[ ...lines snipped...]

You should verify your performance/resource assumptions in your
environment. For instance, we used to use an Apache 1.3+ => mod_webapp
=> Tomcat 4.x environment, but we saw an overhead of around 100 ms per
request as compared to just using Tomcat (so we dropped Apache from the
picture). YMMV, of course.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top