wojtekj
wojtekj

Reputation: 55

How to set up global flag in appengine standard

I need to set a global application setting in my app. I don't really want to use the database as it's just a single flag. I can't use Memcache because it's not durable. Not sure if env variable is shared will al instances after the change? This setting might be changed in the app (like once a month)

Is there any other Google Service where I could place it? There will be quite a lot of reads

Upvotes: 0

Views: 56

Answers (1)

minou
minou

Reputation: 16573

Here are a few options:

  • Store it in your code.
  • Store it in an environment variable. This will be the same for all instances.
  • Store it in datastore but read the value into a Python module variable so you don't need to access the datastore to use it after the first time.
  • Google recently deployed "Secrets management". I haven't tried it yet, but it could work for this.

Upvotes: 1

Related Questions