REST API endpoint optimization | Community
Skip to main content
New Participant
July 19, 2021
Solved

REST API endpoint optimization

  • July 19, 2021
  • 1 reply
  • 1464 views

We could use assistance on optimizing our calls to the Get Lists API endpoint . Currently we are experiencing long wait periods or timeouts retrieving lists due to the number returned (over 20,000 in our case). We noted in the API documentation there are no filters to retrieve only active lists. Do you have any recommendations for optimizing this endpoint? In this situation, the list names returned are used in a UI, so keeping this endpoint synchronous (versus the bulk async option) is preferred. We have tried changing the batch sizes, but that has not improved performance. We do have that set to 300 as a default. 

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 SanfordWhiteman

... In this situation, the list names returned are used in a UI, so keeping this endpoint synchronous (versus the bulk async option) is preferred.

Don’t believe there even is a bulk extract option for this endpoint anyway, no?

 

In any case — not much you can do except (a) caching and (b) parallelization (of course you also need to stay under the overall concurrent request limit, so start with 2 threads).

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
July 19, 2021

... In this situation, the list names returned are used in a UI, so keeping this endpoint synchronous (versus the bulk async option) is preferred.

Don’t believe there even is a bulk extract option for this endpoint anyway, no?

 

In any case — not much you can do except (a) caching and (b) parallelization (of course you also need to stay under the overall concurrent request limit, so start with 2 threads).