11
Views
2
Comments
Solved
Integration logs duration is inconsistent for same API
Question

Hi, we are consuming one API in our application, we noticed that the duration in integration logs in service center is too much inconsistent like from 315 ms to 21 seconds. So, would like to know what the possible reasons for this could be. Is it due to client-side network issues or any other factor also can be responsible for the same. Please advise. 


Thanks

2019-01-07 16-04-16
Siya
 
MVP
Solution

Since this is an external API, there are several factors that could affect performance. One possible reason is that the API itself is slow and may respond differently based on your input parameters or the complexity of the logic it executes. Another reason could be network latency.  It's also possible that the API is throttling requests - allowing only a certain number of requests per second from a given host. One another reason could also be due to load on your OutSystems server.

I suggest you to discuss this with your API provider and requesting logs that show the response times of the calls you've made. This will help isolate the root cause and allow you to plan the next steps accordingly.

UserImage.jpg
Reshma Naz

Thank you for the explanation. Regarding the complexity, it is a simple GET request that returns some numbers of records for a dropdown without any input param. Records are also a few only. 

I had checked with external system for the logs and they said it took at most ~1 second for some instances from their end to send the response, so it is adding the time (up to even 15-20 seconds sometimes) at OS end only. Given that sometimes it is taking correct time of 3-400 ms. Also, there is no limit currently for the number of requests at any level.

So, I think it leaves with two remaining suspects: network latency and/or load on OutSystems server.

I will track further for these 2 things then, what is contributing most.

Thanks again.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.