Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Any experience running this, or something similar in production? #2

Open
allen-munsch opened this issue May 14, 2021 · 1 comment
Open

Comments

@allen-munsch
Copy link

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:

@allen-munsch allen-munsch changed the title Any experience running this in production? Any experience running this, or something similar in production? May 14, 2021
@jordaneremieff
Copy link
Owner

@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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants