I have an application that accepts XML files through an HTTP POST, and
then needs to process these files and send back a response. On some
larger file sizes, this processing isn’t occurring quickly enough, and
the HTTP request times out on the client side. In addition to this,
the server could be receiving several of these files at the same time,
leaving several clients hanging. I have been doing some reading
regarding handling background processing, and was wondering if anybody
had any experience with it?
What I’m hoping to do is to receive the XML document, and then send
back a response to the client right away, before handling the
processing. In my reading I have seen that some possible solutions
might be to use ScriptRunner, or possibly to create a new Thread to
handle the processing. Does anybody have some advice on a good way to
handle this situation?