Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To keep request alive in a webservice

 
Gurvinder Singh
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a problem where i am exposing a webservice to a third party.
The request size is very huge around 8MB, so by the time the request gets processed at my server end, the request times out and the response is not able to reach the source.
We have increased the time out settings on Jboss and Apache but we cannot increase it beyond some point.
So is there away the i can send keep alive signal to the source to prevent the request from getting timedout.


Thanks
Gurvinder
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest substituting a series of steps for your existing one huge request because, as you have found, trying to keep a single request live is full of problems.

1. submit huge dataset - reply says OK, got it, job ID is X

2. start processing X - reply says OK started

3. how is X doing? reply says either - still working or DONE

4. retrieve the result of X

This approach has the HUGE advantage of letting the client do other things while waiting for the result, processing can even run overnight.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic