Git Product home page Git Product logo

apithrottlingcheck's Introduction

ApiThrottlingCheck

What this repository is about?

There was an External API used in a critical part of a system, and faced degraded performance and failures on processing messages on large quantity. That External API seems to have throttling enabled which blocks requestes after X Amount of Calls on Y amount of Time.

Due to the lacking support on API documentation or Developer contact to know these 2 factors (X and Y), needed a way to identify these 2 unknow factors so we can adjust the code or find an alternatice to address this problem. This project contains code to analyze and understand the Average response time of a Throttling Enabled API endpoint, and how it's change when doing API calls parallely with different batch sizes.

How it works?

The attempt is to do Batches of REST API calls to Target API endpoint paralley as Iterations and record the response time. For example, on first iteration this code will do 5 API calls paralley and capture the average response time. On next iteration increase the batch size by 5 (10 api calls) and do the same. Keep continue the iterations until batch size hit to 30. After the batch size hit to 30, start reducing the batch size and keep continue iterations until it reaches to initial batch size (5). Finaly, check all response times on the Console to understand the Trend.

apithrottlingcheck's People

Contributors

dhjayasinghe avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.