performance - Optimizing app.yaml -
concerning response time, instance hours , caching efficiency 1 of following configurations efficient google app engine on python 2.7:
config 1
app.yaml:
handlers: - url: /db/script/.* script: db/script/crud.app secure: - url: /db/state/.* script: db/state/crud.app secure: - url: /db/var/.* script: db/var/crud.app secure:
or config 2
app.yaml:
handlers: - url: /.* script: main.app secure:
with main.py:
app = webapp2.wsgiapplication([ ('/db/script/.*', db.script.crud), ('/db/state/.*', db.state.crud), ('/db/var/.*', db.var.crud) ])
regarding performance (response time, instance hours), take here:
regarding caching, depends on kind of caching thinking of:
- datastore caching happens automatically when use ndb routing setup should not matter.
- browser caching depends on web framework using (e.g. webapp2). can define specific routes static files.
- memcached handled in code , not dependent on routing setup.
Comments
Post a Comment