Google Cloud App Engine Standard not support gzip?

904 views Asked by At

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

Using App engine Standard request header standard

App Engine Flexible

Using app engine Flexible request header flexible

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 :).

0

There are 0 answers