Search code examples
pythongoogle-app-enginewebapp2

App Engine: What is the lifetime of the app-level registry in webapp2


I wonder if the registry is kept between backend restarts. Is it a persistent shared storage, or memory only, or something in between?


Solution

  • The registry you referenced is stored in the webapp2.WSGIApplication instance and therefore is available for the life of that Frontend Instance.

    webapp2 also offers a registry for each Request.

    Reference: