Skip to content

Start a mutation and give a response before it's done #718

Answered by rafalp
maxboone asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use separate worker handling the tasks queue like this (eg. Celery). Trying to solve this with just async/await in mutation is too little (what about handling errors/acknowledging result/retrying on failure?) and in wrong place (you will spend HTTP connection pool and resources on extra tasks not required for HTTP responses).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@maxboone
Comment options

@rafalp
Comment options

Answer selected by maxboone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants