Hello everyone!
Welcome back to another post in the Kaizen series.
We will be discussing an interesting topic this week - API Concurrency
What is Concurrency?
Concurrency is the number of API calls that can be active simultaneously in a given instant per user per OAuth2 app. This limit ensures that computing resources are available for all users. There are no time-based API call restrictions in Zoho CRM as the API limits are based on the number of simultaneously active calls. That is, you can make any number of API calls in a minute, provided the number of concurrent calls is within the specified limits.
The below table gives the concurrency limit for every edition of Zoho CRM.
Edition
| Concurrency Limits for a User/App
|
Free
| 5
|
Standard/Starter
| 10
|
Professional
| 15
|
Enterprise/Zoho One/CRM Plus
| 20
|
Ultimate
| 25
|
Thus, a user in the Free edition can only make five concurrent API calls at a given instant.
Let us understand it well with an example, refer to the image below:
Consider that an organization is in the Standard edition where a user can make a maximum of ten concurrent API calls. Assume that the user makes each of these API calls at times T1, T2, and so on, as in the below image. While these ten requests are still being served, and the user makes an eleventh API call, that call fails (illustrated by the red line) as the user has already reached the concurrency limit of ten.
The system will process the user's eleventh API call, only when either of the already active ten requests gets completed. In the image, the request made at the time T5 gets completed (illustrated by the green line), making the count of active API calls nine. Therefore, the system can now process the eleventh API call made at the time T12.