How not to make client wait
In my web app, I have a requirement to do something like below:
Receive the request and process business logic
Prepare response
Send response back
Do some more stuff
Steps 3 and 4 are important because both needs to happen in a parallel
way. I am looking for a non-blocking IO way of implementing it.
What is the best way to implement this in Java?
Thanks in advance
No comments:
Post a Comment