Using JavaScript and Chai Asserts to Validate API Response Timing versus Data Size

My last post described the possibility of applying JavaScript and API Science’s built-in Chai Assertion Library to validate responses from API calls. In that post, I created a monitor that calls the xkcd.com API, which returns JSON formatted responses. Now it’s time to write some JavaScript that validates the API’s responses. The API Science monitoring […]

Continue reading

Timing-Out Slow-Performing External API Requests

API performance varies depending on many variables, including the response of the Internet (for example, resolve time and transfer time) and the timing for work that occurs on the remote server (connect time and processing time). My last post illustrated that calls to the World Bank Countries API sometimes exhibit abnormally slow performance. Unpredictable, though […]

Continue reading