Need a special offer?Find out if your project fits.
+

Extend wait time for a response generated by API

Answered
LCA asked on November 14, 2022

               We are trying to extend the wait time out period for Flexmonster when data  is coming from an API (in json format); the response brings up more than 100k records and it takes the server to respond more than 5 minutes; but the Flexmonster doesn’t wait for the response
               How can we extend the wait time out period on Flexmonster?? Is there an option for this???
               Please let us know
               Kind regards,

3 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster November 15, 2022

Hello,

Thank you for writing to us.

From the provided context, we suppose you are encountering the HTTP request timeout, which happens on the browser's side before the response can get to Flexmonster. Please note that this response timeout cannot be increased from Flexmonster's end. Our recommendation would be to improve the servers' performance. Please see the two ways how this can be done:

Using cached data
You can save the data needed to be shown in the servers' cache. With this approach, you would have a periodically running task that retrieves and processes the data from your data source. If Flexmonster requests the data, your server would only need to send already processed JSON stored in the cache instead of doing time-consuming action every time the data is needed.

Data streaming
Another possible solution is modifying your endpoint in a way it would stream the data in separate chunks. See the following support forum thread for more details. 

Please let us know if one of these solutions would work for you.

Best Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster November 22, 2022

Hello,

Hope you are doing well.
We would like to know if you had time to try one of the provided approaches to solve the issue with the long loading time. 
Please let us know if some of them would work for you.

Best Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster November 29, 2022

Hello, 

Our team is wondering if you had time to test the provided solutions.
We will be glad to hear your feedback.

Best Regards,
Maksym

Please login or Register to Submit Answer