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
My guess, is that doing all the messy patchwork stuff probably won't be supported officially as part of asgiref, however, it'd be nice as a user to have an interface that shims between the two worlds. However messy it is under the hood.
Use case:
Mounting an ASGI application inside of a WSGI app ( which uses psycogreen, gevent, eventlet, etc ) ensuring all the production core code for a bigger app remains performant, while at the same time enabling users to begin experimenting/mounting, newer ASGI apps, without having to re-write all of the django orm code using turtleorm, sqlalchemy, etc.
Example scenario: "How can I mount a FastAPI app to the inside of Django?"
Yeah, unfortunately gevent has such a different execution model that I don't think we can sensibly support interoperability with it - at least not without someone paid full-time to figure all this out.
You can likely get it working in a hacky way, but making so it works reliably, propagates exceptions properly, handles threadlocals and locking correctly? Probably a mammoth task.
Is this doable?
My guess, is that doing all the messy patchwork stuff probably won't be supported officially as part of asgiref, however, it'd be nice as a user to have an interface that shims between the two worlds. However messy it is under the hood.
Use case:
Mounting an ASGI application inside of a WSGI app ( which uses psycogreen, gevent, eventlet, etc ) ensuring all the production core code for a bigger app remains performant, while at the same time enabling users to begin experimenting/mounting, newer ASGI apps, without having to re-write all of the django orm code using turtleorm, sqlalchemy, etc.
Example scenario: "How can I mount a FastAPI app to the inside of Django?"
Something really wacky along these lines:
The text was updated successfully, but these errors were encountered: