![]() ![]() In addition, as the API responses are flaky it is causing other issues too. This means that your warehouse (fulfillment center) staff are waiting for no direct benefit. Usually, the create AWB HTTP API would respond in under 200 milliseconds (ms) but due to the load and ongoing issue at the time of calling it was responding in around 3 seconds. Due to the last quarter of the year, the high traffic season of Black Friday and Christmas sales their API is responding extremely slowly. Imagine this, your shipment application is calling the Auspost/DHL API to create a shipment and get an Airway Bill (AWB) number to send to the customer. In addition to that, your applications might also be calling external APIs to accomplish all sorts of tasks from some AI-related calculation to creating shipments for a customer order. Depending on how your company’s applications and the communication between them is architected, you are most likely calling some internal HTTP APIs. In today’s world of highly interconnected services and API economy, more often than not your application will call either external HTTP APIs or internal ones. ![]() In this post, you will learn about Axios, its configs, and how to set Axios timeout properly to not hamper your application’s performance. Setting Axios timeout properly makes your application perform efficiently even when the called API/URL is not responding in a timely manner. It is an HTTP client available for both the browser and Node.js. Axios is one of the most popular JavaScript libraries to do HTTP requests.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |