- 01 Jan 2025
-
DarkLight
-
PDF
Throttling
- Updated on 01 Jan 2025
-
DarkLight
-
PDF
Throttling
Adapters have the ability to throttle the flow of traffic to the downstream system. The adapter can handle taking in a large number (thousands) of requests in a short period of time, queue those requests up and then send them to the downstream in a smaller number of concurrent requests. The adapter will continue to send requests to the downstream system over some period of time until all the requests in the queue have been processed.
Why: This is done when the downstream system either can not handle the large load of requests at the same time and so they have to be spread out over a larger time interval or it has some concurrent license criteria that will prevent it from handling more than n concurrent requests.
While the adapter handles this, this capability should only be used when careful consideration has been given to potential side effects.
- You should set some limit to the number of items the adapter can queue (this is in the adapter throttle properties). After that, the adapter will start rejecting requests.
- You should expect that responses will take longer becuase the request will sit in the queue until it is determined that the downstream system is capable of handling the request. This responses can be many minutes.
- Adapter requests should come in peaks and valleys. During a peak level of traffic, the adapter will build up its queue. During a valley the adapter is not getting a lot of requests and so it is able to work down the queue. THe ability to work down the queue is critical to successful throttling - if there is no time for the adapter to work down the queue the consequences will be a lot of delayed responses and rejected calls.