关于接口并发情况的考虑
1.使用genvent做协程,解决高并发
from genvent.wsgi import WSGIServer
from genvent import monkey
monkey.patch_all()
app = Flask(__name__)
app.config.from_object(config)
api = Api(app)
db = DBInfo()
# db_old = DBInfo_old()
2.Flask+Gunicorn+Nginx+Supervisor部署高并发web工程。
参考 https://www.jianshu.com/p/a90775e33b52