How Many API Calls the PVWA Can Handle? (Rate Limiting / Rate Limit)
Question
How many API calls the PVWA can handle?
Environment
13.0;14.2;14.4 Privileged Access Manager (PAM, self-hosted) Cyber-Ark API/SDK
Answer
ON PREM
There is no concrete answer that can be provided as the amount of API calls per second depends on many factors:
The PVWA application itself does not have a hard coded limit on the number of API calls. Also, there is no limitation on the IIS as well, however, here the first factor comes into play, which is the server's resources. This means that a strong server with more RAM and CPU will be able to handle more API calls per second.
With that said, please note that API throttling is enabled by default, and can be either configured or disabled.
API throttling checks the machine's CPU, and checks the size of the queue containing pending requests. When you enable API throttling, and the defined maximum level of CPU activity is reached or the size of the queue is too long, new incoming requests that are sent to the queue are rejected. The user will receive a response indicating that throttling has been reached, and to try again in a few minutes.
For more information on API throttling please refer to our online documentation:
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/latest/en/Content/PASIMP/API-throttling.htm
Another factor that should be taken into consideration is the type of the API call. While some API calls may contain very little data in the transit, others may be much larger, requiring more resources, which plays a major role in the amount of API calls per second the server can handle. This means that the amount of API calls is also determined by the type of the API call.
Finally, as the API calls eventually are forwarded to the Vault, from where the information is retrieved, the amount of sessions the vault can handle, as well as the time it takes for it to respond to the request of the API call, also affects the number of API calls per second.
Privilege Cloud
In the Privilege Cloud environment the above modifications are not available and no configurations can be changed.
If you encounter a scenario in which you receive Rate Limiting errors this can be overcome by introducing a minimal delay in the calling routine between API calls. While there is no set guideline on what the delay should be, 500ms or similar minimal delays should be plenty to overcome the issue.