Google Cloud App Engine Standard not support gzip?

454 views
Skip to first unread message

Indra Sumawi

unread,
Nov 14, 2018, 1:22:27 PM11/14/18
to Google App Engine

Currently I develop REST API using laravel framework and I deploy it to both Google Cloud App Engine Standard and Flexible version.

When I deploy it to flexible version, it works fine. However, since my app still prototype, I want to change it to standard version so I can get the free tier because my app still use very little resources.

However, when I try to deploy to App Engine standard, everything still works, but the response quite slow, compared to flexible. I already tried to change the instance class to the highest spec machine, but still the same result.

So I try to find out what's going on, I thought App engine standard slower than flexible.

My findings:

App Engine Standard

MdRqA.png

nx9T3.png



App Engine Flexible 

JGBau.png

lgEpT.png




As you can see, the standard and flexible request to the same API endpoint, however, in standard version, the response return not in gzip encoding and more bytes were return, while flexible version return in gzip encoding.

I think that might be the problem why every request become slow. In Flexible, mostly the request return under 1000 ms, while in standard most of the time around 2000 ms.

Do you guys have any idea how to enable gzip compression in App Engine Standard, or do you think there is other problem that cause the response to be slow.

Thank You for your help :)

Jason Collins

unread,
Nov 14, 2018, 3:02:56 PM11/14/18
to Google App Engine
What runtime are you using?

Indra Sumawi

unread,
Nov 15, 2018, 12:34:15 PM11/15/18
to Google App Engine
Hi Jason,

During the test, I'm using runtime php72 for standard and runtime php for flexible

Jason Collins

unread,
Nov 15, 2018, 5:07:03 PM11/15/18
to Google App Engine
Okay, thx. 

For the "second gen runtimes" (php72, nodejs8, python37, go111) we are currently not sending the Accept-Encoding header to your app, and we are suppressing the Content-Encoding header on the response. This will change in the next 2-3 weeks and both headers will function as expected. We also intend to add an nginx webserver to php72 (replacing the existing one) that will automatically handle the compression on your behalf.

Indra Sumawi

unread,
Nov 15, 2018, 7:51:06 PM11/15/18
to Google App Engine
Hi Jason,

I see. Thank you for your answer :)

Jason Collins

unread,
Nov 16, 2018, 3:32:22 PM11/16/18
to Google App Engine

Indra Sumawi

unread,
Nov 16, 2018, 9:34:02 PM11/16/18
to Google App Engine
Thanks Jason 🙏
Reply all
Reply to author
Forward
0 new messages