关于响应时间,实例小时数和缓存效率,以下配置之一对于Python 2.7上的Google App Engine最有效:
配置1
的app.yaml:
handlers:
- url: /db/script/.*
script: db/script/crud.app
secure: always
- url: /db/state/.*
script: db/state/crud.app
secure: always
- url: /db/var/.*
script: db/var/crud.app
secure: always
或配置2
的app.yaml:
handlers:
- url: /.*
script: main.app
secure: always
使用main.py:
app = webapp2.WSGIApplication([
('/db/script/.*', db.Script.Crud),
('/db/state/.*', db.State.Crud),
('/db/var/.*', db.Var.Crud)
])
答案 0 :(得分:2)
关于性能(响应时间,实例小时数),请看一下:
关于缓存,它取决于您正在考虑的缓存类型: