AndrewPeirson@xxx.co.zw wrote:
>
> Hi all,
>
Hi,
> I'm pretty new to all three technologies (GZIP, hessian and Spring) and
Well I think Spring has nothing to do with it whatsoever.
> was wondering if there is any way to compress the data going across the
> wire when using hessian and spring. I searched the archives and found
Again, forget Spring :)
Assume you have a really smart HTTP client that can handle HTTP gzipped replies,
then all you need to do is to configure HTTP compression in your web server and
it will work automagically. For instance this is how we achieve hessian data
compression when using it with Flash clients - no need to implement encoding and
decoding in Flash.
On the other hand you can always wrap the hessian stream yourself using whatever
algorithm you see fit, for instance with different trade-offs in terms of
compression rate versus CPU usage (both very important for mobile clients for
instance). This is basically what the c++ client does; it checks the server's
reply for the GZip magic and if found proceeds to ungzip the stream and then
passes it over to the hessian decoding pipeline as usual. This obviously
requires some changes to the Hessian servlet to add GZipping to the
outputstream, but they're really simple to implement.
> that a new feature request has been posted but couldn't work out whether
[...]
> would be appreciated. Also, if we add SSL into the mix, how much, if
> anything, changes.
>
It all depends on what client you're using, but you should be able to make SSL
work pretty quickly. Configure the web server, make sure the client library
supports SSL and off you go.
> Thanks in advance,
> Andrew Peirson.
> (Central Africa Building Society - Zimbabwe)
Cheers,
-- Radu-Adrian Popescu CSA, DBA, Developer Aldrapay MD Aldratech Ltd. +40213212243
This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:41 PDT