简体   繁体   中英

Can flask g be used with gunicorn?

When flask g keep data on one request and another request follow almost simultaneously (race condition). Will flask g be replaced by new flask g?. And how i can handle if this situation happen. Thank you.

This is no problem. In flask every simultaneous request will be handled in a separate process. There will be multiple g at a given time (depending on how you configure gunicorn) but every process will have it's own instance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM