You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there similar way to achieve this kind of functionality in gunicorn?
I am planning to add SSE functionalitiy with redis in Flask app.
Third party library (Flask-SSE) docs suggests I run with asynchornous workers(gevent) with gunicorn.
I think two approaches are somewhat different.
(uWSGI) I run Flask in sychronous worker tcp/ip 8000 port / SSE(redis) app in asynchronous worker(gevent) in unix socket
(gunicorn) I run Flask and SSE(redi) app in asynchronous workers(gevent) in tcp/ip 8000 port.
The way my app be deployed is not related to gunicorn itself.
However, I'm just curious that there is similar way in Gunicorn.
I'm sorry if the question is nonsense...and description is awful.
(I am still trying to learn both programming and English :))
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, first of all, I really appreciate the core author's hard work.
Gunicorn is awesome. I hope my small project running in production with gunicorn.
uWSGI has "offloading" feature to combine websocket(or server-sent events) with synchronous wsgi app (django, flask etc) safely.
https://uwsgi-docs.readthedocs.io/en/latest/articles/OffloadingWebsocketsAndSSE.html (relevant link).
Is there similar way to achieve this kind of functionality in gunicorn?
I am planning to add SSE functionalitiy with redis in Flask app.
Third party library (Flask-SSE) docs suggests I run with asynchornous workers(gevent) with gunicorn.
I think two approaches are somewhat different.
(uWSGI) I run Flask in sychronous worker tcp/ip 8000 port / SSE(redis) app in asynchronous worker(gevent) in unix socket
(gunicorn) I run Flask and SSE(redi) app in asynchronous workers(gevent) in tcp/ip 8000 port.
The way my app be deployed is not related to gunicorn itself.
However, I'm just curious that there is similar way in Gunicorn.
I'm sorry if the question is nonsense...and description is awful.
(I am still trying to learn both programming and English :))
Thanks you for reading this post.
Beta Was this translation helpful? Give feedback.
All reactions