First API call very slow - the following ones are quicker. Why?
Hi Petem34,
In most instances, this is normal and the first data connection tends to take longer.
The next transfer of data under the same domain will be smoother.
If you have to shorten the first response time, a possible direction is to write a custom API response, but it will lengthen subsequent response times.
First API call very slow - the following ones are quicker. Why?
I don't even know which D365 product you're talking about (this forum is about D365 in general), but it seems that there are resources to load, or maybe the whole web application needs to start on the first request. The difference between so-called cold start and warm start is common. It's also possible that it's not just about the first request, but that the web app would go to sleep if not used for some time.
If it's a web app hosted by Microsoft (which likely is the case when talking about D365), you probably can't do much about it. All you can do from outside is making calls, e.g. using periodic calls to prevent the app from unloading.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.