1

Topic: GZIP

Is it possible for REST response to be compressed to minimise the download time?

Thanks,
Luck

IT Officer
rECOrd (A Biodiversity Information System for Cheshire, Halton, Warrington and Wirral)
www.record-lrc.co.uk

2

Re: GZIP

Hello luck

I am not sure the JSON returned by the REST services can be compressed any further but will alert the NBN Gateway developers to your question to see if this is possible

Best wishes

Graham
NBN Technical Liaison Officer

3

Re: GZIP

Is this related to a specific query from the API and how big are the responses that you are getting? As its difficult to separate the time taken to download the responses to simple processing time, so I would like just to see if you are doing a complex query for example, maybe something we can improve on, or we can look into reducing the size of the returns somehow.

Thanks
Matt

Matt Debont
Application Developer
Joint Nature Conservation Committee, Monkstone House, City Road, Peterborough PE1 1JY, UK

4

Re: GZIP

Hi Matt,

To minimise the data return and process time from your comment on the other post, I'm breaking the query down by 1km gird reference to get the dataset then query taxon observation using dataset key and grid reference.

Gzip compression may be required if large amount of data return from that 1km square.

Query dataset (not responding in some occasion e.g. https://data.nbn.org.uk/api/taxonObserv … ef=SJ3684)
https://data.nbn.org.uk/api/taxonObserv … Ref=SJ3580
Query observation
https://data.nbn.org.uk/api/taxonObserv … Ref=SJ3483

Thanks,
Luck

IT Officer
rECOrd (A Biodiversity Information System for Cheshire, Halton, Warrington and Wirral)
www.record-lrc.co.uk

5

Re: GZIP

Just another note, we also filter out our dataset.

IT Officer
rECOrd (A Biodiversity Information System for Cheshire, Halton, Warrington and Wirral)
www.record-lrc.co.uk