• Post Reply Bookmark Topic Watch Topic
  • New Topic

Request Timeouts  RSS feed

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need some inputs regarding the below..

In our application(Struts), we make requests to a backend through the API provided the vendor of the backend. But unfortunately ,in case there is issue with process taking longer it has to timeout which the API is not delivering.

I would like to handle the timeouts with a wrapper over the API, can you provide inputs like the viability, approach,etc

Thanks in advance :-)
 
Vinod Tiwari
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After how much time your request is getting timed out? You can either increase timeout duration or display message to user of timeout..
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently the timeouts are not happening when we send across a request to the backend engine.

What we want is that if a request is fired to the backend and it doesnt get any response within 2 secs, it shoudl timeout and doesnt wait for eternity.

We had a recent issue where there was a high CPU util on the backend and the requests from the webapp were waiting indefinitely and utilmately there were hung threads...leading to the server being unresponsive.

Regards
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!