Skip to content

Concurrent Request Processing Issue in Flask with Gunicorn and Gevent-Websocket on AWS #5534

Closed Answered by miguelgrinberg
dev-nasir-iqbal asked this question in Q&A
Discussion options

You must be logged in to vote

Gunicorn monkey patches by default when using the gevent worker, so I think SQLAlchemy should work fine.

My bet is that mysqlconnector, which is a C library, is incompatible with gevent. I would suggest you switch to pymysql for your database driver, that is more likely to work well with gevent's monkey patching because it is a pure Python library.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dev-nasir-iqbal
Comment options

@RonnyPfannschmidt
Comment options

@miguelgrinberg
Comment options

Answer selected by dev-nasir-iqbal
@dev-nasir-iqbal
Comment options

@dev-nasir-iqbal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants