Replies: 1 comment
-
|
Sounds like you are doing a synchronous IO that blocks whole server. Are you sure you are using async ORM or wrapping ORM calls in Also, async is currently broken in Django: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using Ariadne in my Django project and run it as an ASGI-Application (required, since I am using graphql-subscriptions).
Accordingly, all my resolvers are async functions. Overall, Ariadne has been amazing to work with!!
One of my mutations happens to take a few seconds to resolve.
While waiting for the mutation results, I have noticed a surprising behavior: Any call to the API that is sent while the mutation has not yet returned, is blocked until the mutation has finished resolving.
This is not what I had expected from an asynchronous application. Why is this happening? How can I make my API truly async?
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions