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

后端 未结 3 1556
余生分开走
余生分开走 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条回答
  •  Happy的楠姐
    2020-12-29 11:54

    You can read about GAE instances in their documentation here, check out the performance section:

    http://code.google.com/appengine/kb/java.html

    In your case of having small data available, if its static then you can load it into memory on startup of a new instance. If it's dynamic data, you should be saving it to the database using their api.

    My recommendation for keeping a GAE instance alive, either pay for the Always-On service or follow my recommendations for using a cron here:

    http://rwyland.blogspot.com/2012/02/keeping-google-app-engine-gae-instances.html

    I use what I call a "prime schedule" of a 3, 7, 11 minute cron job.

提交回复
热议问题