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
{{ message }}
This repository has been archived by the owner on May 16, 2021. It is now read-only.
Tried using the supplied uvicorn WSGIMiddleware in production and it was a bad time, might have been how it was configured though. Knobs on the number of gunicorn workers, and WSGIMiddelware threads?
The text was updated successfully, but these errors were encountered:
allen-munsch
changed the title
Any experience running this in production?
Any experience running this, or something similar in production?
May 14, 2021
@allen-munsch I've not used this in production myself, and this example was created prior to the introduction of general ASGI support to Django.
I've since created another proof-of-concept taking an approach similar to what you've linked here where the ASGI application is mounted directly rather than the WSGIMiddleware which I'd expect to provide a more seamless integration. That said, I haven't run this extensively or used it with Gunicorn + Uvicorn worker either, but presumably since both expose the common ASGI interface there shouldn't be any issues composing things at that level.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://github.com/jordaneremieff/django-fastapi-example/blob/main/django_fastapi/project/asgi.py#L28
Tried using the supplied uvicorn
WSGIMiddleware
in production and it was a bad time, might have been how it was configured though. Knobs on the number of gunicorn workers, and WSGIMiddelware threads?I was thinking of something like this:
The text was updated successfully, but these errors were encountered: