Page 1 of 1

Gzip compression on SOAP/REST responses

Posted: Tue Jan 07, 2014 8:54 am
by luc.duchosal
Hello,

Would you consider compressing HTTP REST Response with gzip algorythm ?

We developped request throttling and request caching after the introduction of rate limit
and quota limit. The main limiting factor is now the QuotaPerHour that is way too low :
X-IndividualQuotaPerHour-Used: xxx
X-RegisteredPayingQuotaPerWeek-Used: xxx

Gzip compression would hugely reduce the size of REST response :

http://ops.epo.org/3.0/rest-services/fa ... A2/biblio/
JSON no compression : 247'411 bytes
XML no compression : 186'325 bytes
JSON gzip : 8'833 bytes
XML gzip : 7'903 bytes

It looks like you're using JBoss application server that may support natively gzip compression.

On the client side, every serious HTTP/REST framework natively support gzip compression.
That would mean instant benefit for everyone with few lines of code.

Let us know
Regards
Luc

Re: Gzip compression on SOAP/REST responses

Posted: Tue Jan 07, 2014 11:44 am
by EPO / OPS Support
Dear user,

Thank you for your feedback, we will forward this to our IT.

I've just noticed that you are still using version 3.0 which was suppose to be shut down already by the end of 2013.

Migrate to version 3.1 as soon as possible because we will be shutting old version down any day now.

Also, please make sure to read our updates on the website and forum, version 3.0 should not be used as of October 2013 if not even earlier (beta version of 3.1 was already available in June 2013). We do make sure to inform users about all changes on time.

Kind regards,

OPS support

Re: Gzip compression on SOAP/REST responses

Posted: Tue Jan 07, 2014 1:42 pm
by luc.duchosal
Dear OPS Support,

Thanks for your time, and thanks for forwarding this to technical support.
As far as I know, neither 3.0 nor 3.1 rest service return gzipped content.

GET http://ops.epo.org/3.1/rest-services/fa ... .A2/biblio HTTP/1.1
Accept: text/html, application/json, */*
Accept-Encoding: gzip
Host: ops.epo.org

The "accept-encoding: gzip" header should be taken into account and
returned REST response might be gzipped.

Our production applications uses the 3.1 service. Thanks for pointing this out.

Regards
Luc

Re: Gzip compression on SOAP/REST responses

Posted: Tue Jan 07, 2014 1:45 pm
by EPO / OPS Support
Dear user,

As mentioned, I will forward your request to IT because we don't support gzipped content at the moment.

Kind regards,

OPS support