Sending response before processing request in wsgi application

Tag: flask , wsgi Author: lisa513107 Date: 2013-10-10

I have a wsgi flask application 'W' and a server 'S' that notifies W about some data. I don't want S to wait for W to complete processing the data. How can I send a response to S immediately after getting a request in W. Any help on this. Running data processing in a separate thread is a way of doing it as suggested here. separate thread

Can anyone tell me if there are other ways of doing it.

You are looking for queue / task management libraries. There are both in process and out-of-process libraries available (out-of-process ones are more popular, for what it is worth).