One of my applications in my Django project require each request/visitor to that instance to have their own thread. This might sound confusing, so I'll describe what I'm looking to accomplish in a case based scenario, with steps:
- User visits application
- Thread starts
- Until the thread finishes, that user's server instance hangs
- Once the thread completes, a response is delivered to the user
- Other visitors to the site should not be affected by any other users using the application
How can I accomplish something like this? If possible, I'd like to find a lightweight solution.