*My Usecase*

Recently I just deployed a very small PHP application that was built with 
the following resource. I was using App Engine Standard Environment for 
PHP55


   - PHP Slim Framework
   - Twig as Template Engine
   - MySQL


   - I enabled Twig cache for optimizing it's compilation. And the cache 
   directory was in GCS (gs://mybucket/cache).
   - My application's session storage was Cloud SQL (2nd generation).
   - Application was using Monolog as Logger and log directory was also in 
   GCS (gs://mybucket/log) 
   - All of my static assets were serving from a GCS CDN endpoint 
   (gs://cdn.mydomain.com)

Resource Region:

   - Cloud SQL [asia-east1-a]
   - App Engine Region [ASIA-NORTHEAST1]
   - Twig Cache bucket and Temporary file bucket [ASIA-NORTHEAST1]
   - static files bucket (CDN) - multi-region [primary region: asia-east1-a]

When my application serve, it first look for twig cache file, if there is 
any template caching, it delivers from cache. Also For every route, I have 
only 1 monolog log is being created in temp directory. What I demonstrated 
is that, when most of my temporary storage are on GCS (whether it's on same 
App engine region or nearest region).. my app latency is much much higher 
than normal. I understand this because, when I just disabled my tmp file 
and twig cache, then my application serve like a charm. :)

So obviously, I came to a conclusion that when your App Engine will deal 
with GCS as it's writable file location, you have to fight with it for 
optimizing your app deliverability.

But AFAIK, almost all application sometimes needs temporary writable file 
system (though, app engine's file system is only readable). In this case, 
how App Engine will optimize apps for those application. Am I correct or 
missing something that my eyes skipped?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7137fcb9-2276-42a3-a550-0c1fdb51670e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Shaharia Azam

Reply via email to