GAE Go - “This request caused a new process to be started for your application…”

后端 未结 3 1538
余生分开走
余生分开走 2020-12-29 11:29

I\'ve encountered this problem for a second time now, and I\'m wondering if there is any solution to this. I\'m running an application on Google App Engine that relies on fr

3条回答
  •  有刺的猬
    2020-12-29 11:50

    Do you realize that GAE is a cloud hosting solution that automatically manages instances based on the load? This is it's main feature and reason people are using it.

    When load increases, GAE creates a new instance, which , of course, has all RAM variables empty.

    The solution is not to expect variables to be available or store them to permanent storage at the end of request (session, memcache, datastore) and load them if not present at the beginnig of request.

提交回复
热议问题