How to fix GET call timing out | Community
Skip to main content
Adobe Employee
June 9, 2021
Solved

How to fix GET call timing out

  • June 9, 2021
  • 2 replies
  • 927 views

Hi experts,

we have a get api which fetches a large amount of data in sort of a DFS fashion.

Like this A- is linked with B, B is linked with C, 

then it should get all A,B,C along with all the labels of all A,B,C and the version history of each of the files.

Then we build our UI upon this to should a is linked with b and C and in in the drop down any version can be selected and the corresponding file.

this works for a small sets of links, but when we have a very large set with loads of version history the ui often times out saying that the GET call failed but the call returns data in like 15-20 min.

In cloud it times out in 60 sec. 

Can you please help us as to how to change this design. so that the call does not time out.   we start crawling from the seed file so any help would be great. we do cache the data once called.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

Few factors to consider:

- How frequently do you need to fetch this information from external system?

- If it does not need to be real time, consider pulling information regularly and caching it

- The content can also be extracted and kept in a format, that can be used by AEM Servlet/Sling Model to efficiently return the results.

- Consider caching on dispatcher and CDN level

 

Use caching and pre-processing to your advantage and reduce the UI processing for each request

2 replies

Shubham_borole
Community Advisor
Community Advisor
June 11, 2021

Could the server you are calling for data be rate-limiting your requests based on ip or user account?

 

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
December 15, 2023

Few factors to consider:

- How frequently do you need to fetch this information from external system?

- If it does not need to be real time, consider pulling information regularly and caching it

- The content can also be extracted and kept in a format, that can be used by AEM Servlet/Sling Model to efficiently return the results.

- Consider caching on dispatcher and CDN level

 

Use caching and pre-processing to your advantage and reduce the UI processing for each request

Aanchal Sikka