Reduce Google Cloud Endpoints request response header size

49
September 13, 2017, at 10:13 PM

I'm using a Google Cloud App Engine and Google Cloud Endpoints API for my backend for an Android app.This is all in Java. I passing Json through to the backend. When I call an API method in the Endpoints from the Android App, I get an HTTP response from the App Engine. To reduce the download data load on my App I've reduced the body of the response as much as I can, i've set it up so that most of the time the message in the body is just a 'success' message and a custom ID tag.

I'd now like to try and reduce the size of the response header if possible. I haven't been able to figure this out or find much information about this online, could anyone help with this? I'm not even sure this is possible.

The properties in the response header seem to be set as defaults in the backend, I can't see where this is being done to try and modify it or remove some of them (assuming some of them are not absolutely necessary for the response to be delivered properly). The size of the header in each response is 500 bytes.My app is sending many small messages as the users will often be making small updates to data which needs to be pushed out and so 500 bytes for each response quickly adds up. This is especially a problem as most of my users will be away from wifi and will have somewhat low data plans on their phone.

READ ALSO
Spring evaluation language (SpEL) not throw exception when accessing invalid key in map

Spring evaluation language (SpEL) not throw exception when accessing invalid key in map

I am new to SpEL and below is a sample workable test that I used for testing

66
While authenticating mongodb using java it is taking more time and throwing mongotimeoutException in case of wrong credential

While authenticating mongodb using java it is taking more time and throwing mongotimeoutException in case of wrong credential

After authentication i need to show message to end userBut, the exception is comming after 30 seconds in case when the user enters wrong credentials

64
Converting XML+XSL in HTML using Java

Converting XML+XSL in HTML using Java

We have data as XML and there are multiple formatting XSL stylesIt was working fine till now in IE

57
How can I parse a csv in low memory, using some parser in Java?

How can I parse a csv in low memory, using some parser in Java?

I used InputStream, and on parsing, if there is a "," in one column then it considers it as a separate columnex - abc, xyz, "m,n" then the parsed output is abc , xyz, m, n Here m and n are considered as separate columns

34