API Connect

 View Only
  • 1.  API Connect Rate limit control per a particular time period

    Posted Wed November 13, 2024 01:19 AM

    We have configured the rate limit right now on hourly basis,day basis depends on the product feature availability. Is there any feature we can configure the rate limit for a particular interval for example in between 10PM-11PM(2000 calls), 11PM-12AM(1000 calls) and during other intervals we can apply the default rate limit.

    If there is any possibility of defining user defined policy for this requirement for a particular hour we have to configure the rate limit value. This will be helpful for the consumers who are trying to access the services and running batch jobs during night intervals.



    ------------------------------
    Chiranjivi Thopuri
    ------------------------------


  • 2.  RE: API Connect Rate limit control per a particular time period

    Posted 30 days ago

    Hi Chiranjivi,
    Scheduling capability doesn't exist within the rate limit object.  I'd suggest you submit a request for enhancement.  The only workaround that has been suggested is to have a switch in your API that would use a different rate limit based on the switch criteria, in your case the time of day, day of week etc.  RFEs are submitted via the Aha! site https://secure.aha.io/session/new?requested_domain=bigblue

    Best Regards,
    Steve Linn



    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------



  • 3.  RE: API Connect Rate limit control per a particular time period

    Posted 30 days ago
    Edited by Gabriel Leme 30 days ago

    Hi Chiranjivi,

    As Steve said there's no native function to do it.

    But you can try to create an automation for that, for instance:

    • Create two plans, each with its own rate limit  
    • Use an automation script or an API call to the APIC to switch the active plan for your API at specific time

    Or you can try to do this logic with Assembly with the Switch or Gateway script.



    ------------------------------
    Gabriel Leme
    ------------------------------