I've built a flask app that runs on Google App Engine and uses requests-oauthlib. I understand that requests-oauthlib uses requests.Session for session persistence. How can I back session persistence with a database? I'm worried that if my app gets a lot of traffic, it will autoscale and sessions will get mixed up between instances. I'd like to database-persist session information so it is multiprocess-safe.
I've built a flask app that runs on Google App Engine and uses requests-oauthlib. I understand that requests-oauthlib uses requests.Session for session persistence. How can I back session persistence with a database? I'm worried that if my app gets a lot of traffic, it will autoscale and sessions will get mixed up between instances. I'd like to database-persist session information so it is multiprocess-safe.