Skip to content

Gevent has more compatibility issue than I thought... #2056

Answered by miguelgrinberg
dongzeli95 asked this question in Q&A
Discussion options

You must be logged in to vote

With Flask-SocketIO you have three concurrency options:

  • threads (async_mode='threading', and the --threads option in Gunicorn)
  • gevent
  • eventlet

Using threads is going to give you the biggest compatibility with third-party libraries libraries. Gevent and Eventlet provide higher scalability than threads, but the cost is that the asynchronous programming model is harder to set up, as you need to make sure that nothing in the application blocks for too long. The Eventlet project is currently on life support, so even though I used to like it more than Gevent at this point I cannot recommend it anymore.

A lot of the python SDK on the market doesn't support gevent really well

I think this is …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@dongzeli95
Comment options

@miguelgrinberg
Comment options

@dongzeli95
Comment options

@dongzeli95
Comment options

@miguelgrinberg
Comment options

Answer selected by dongzeli95
Comment options

You must be logged in to vote
1 reply
@miguelgrinberg
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