Is it possible to queue our requests if the rate limit value is met ?

Lets say i have configured spike arrest policy for 10pm ,if we cal for 11 time it throws a spike arrest error. What i would to know is can we set queue for the requests that exceed the limit and send them once the counter is set back to 0.Or are the excess requests just lost and we have make the calls after the time period. @Anilsagar

Solved Solved
0 1 579
1 ACCEPTED SOLUTION

@archana ,

Two things to highlight from your above question,

  • Lets say i have configured spike arrest policy for 10pm ,if we cal for 11 time it throws a spike arrest error.
    • Above statement is not true, spike arrest doesn't work like that. For more info check policy docs here.
    • For example, 12 per minute spike arrest rate means. The policy smoothes the rate to 1 request allowed every 5 seconds (60 / 12). If second request is made within 5 seconds, it will raise a fault / restrict access to target.
  • Regarding Queues,
    • Refer answer by @arghya das here .
    • See more about JMS integration here.
    • You can build a custom solution too by leveraging datastore like BaaS & nodejs containers. But, It should be the last option.

Hope it helps.

View solution in original post

1 REPLY 1

@archana ,

Two things to highlight from your above question,

  • Lets say i have configured spike arrest policy for 10pm ,if we cal for 11 time it throws a spike arrest error.
    • Above statement is not true, spike arrest doesn't work like that. For more info check policy docs here.
    • For example, 12 per minute spike arrest rate means. The policy smoothes the rate to 1 request allowed every 5 seconds (60 / 12). If second request is made within 5 seconds, it will raise a fault / restrict access to target.
  • Regarding Queues,
    • Refer answer by @arghya das here .
    • See more about JMS integration here.
    • You can build a custom solution too by leveraging datastore like BaaS & nodejs containers. But, It should be the last option.

Hope it helps.