Consultor Eletrônico



Kbase P124060: How to compress WebSpeed output
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/9/2008
Status: Unverified

GOAL:

How to compress WebSpeed output

GOAL:

How to decrease traffic volume from an http client to WebSpeed.

FACT(s) (Environment):

All Supported Operating Systems
WebSpeed 3.x
WebSpeed 2.x
Tomcat

FIX:

If a webspeed application is running on a really low bandwidth, some of options bellow could be useful to decrease the data volume:
1 - Change the application to have the minimum output as possible.
a) Use css
Some clients supports the usage of css that could dimish the ammount of data needed to define the look of a component. For instance, to define a font, color, size and position could be used just one css entry reference instead of a large string.
b) Use ajax
If allowable by the client, some ajax tecniques minimize the ammout of exchanged data, asking the server just small pieces of information to update the client. In other hand, this tecnique requires lots of reengineering.
2 - Compress data on the Webservers/proxy
Some Webservers/Proxyes support compression, and could be effective once http is text based. Some updates on the client settings may be required.
3 - Compress manually
In case the webserver does not support compression, it could be achieved by putting a process between WebSpeed and the client browser. The easiest way to implement it, would be through a servlet between the webserver and the webspeed. The role of this servlet would be get all http information sent by the client, creates a request to webspeed, gets the response, compress and sent to the client. In this case also, some client settings may be necessary to let them to support compressed streams.