Rate limits
The rate limits in ERP.net are a set of limits, related to the requests per each session that can be made within a specified period. Rate limiting is used to prevent overloading and ensure fair usage for all users (i.e. sessions).
Exceeding any type of limit will result in an HTTP response 429 - Too Many Requests.
Types
"ERP.net introduces several types of rate limits, each targeting a specific use case. These rate limits are summarized in the following table and described in more detail below.
| Rate limit | Config key | Default value |
|---|---|---|
| Requests per minute per session | SessionRpm |
600 |
| Concurrent requests per session | SessionConcurrentRequests |
1 |
| Concurrent transactions per session | SessionConcurrentTransactions |
10 from 27.1.1.96; 1 before that version |
| Global concurrent requests | GlobalConcurrentRequests |
2 |
Note
Please note that the support for these rate limits may vary across different websites, so you should refer to the documentation of the specific site you are interested in for more information.
SessionRpm
A session requests per minute (RPM) rate limit restricts the number of API requests that can be made within a single session, measured over a one-minute period.
The default session RPM rate limit is set to 600, allowing up to 600 requests per minute. Exceeding this limit will result in an HTTP response of 429 - Too Many Requests.
SessionConcurrentRequests
Session concurrent requests is a rate limit that restricts the number of simultaneous API requests within a single session. The default limit is set to 1, allowing only one request at a time during a session.
If the concurrency limit is reached, an internal queue with a size of 5 is used to hold additional requests. If the queue is full, all further requests will immediately return a 429 - Too Many Requests response.
SessionConcurrentTransactions
SessionConcurrentTransactions limits the number of Domain API transactions a session can keep open between BeginTransaction and EndTransaction calls.
Starting with ERP.net version 27.1.1.96, the default is 10 open transactions per session. Earlier versions default to 1. The limit is configurable in both version ranges: an explicit RateLimits.SessionConcurrentTransactions value in the website settings overrides the default and continues to apply after an upgrade.
When the limit is reached, another BeginTransaction call returns 429 (Too Many Requests) with the message "Maximum allowed transactions for this session have been reached." Close an existing transaction with EndTransaction before retrying. Open transactions count toward the limit even between HTTP requests; SessionConcurrentRequests independently controls the number of simultaneous HTTP requests.
See Domain API transactions for transaction management and the versioned defaults.
GlobalConcurrentRequests
GlobalConcurrentRequests is a rate limit that restricts the total number of concurrent API requests across all sessions. The default limit is set to 2, but it can be configured to allow up to the lesser of the number of processor cores or 4 concurrent requests.
If the concurrency limit is reached, an internal queue with a size of 5 is used to hold additional requests. If the queue is full, all further requests will immediately return a 429 - Too Many Requests response.
Configuring rate limits
The limits above are the default ones. You may specify others in the related web site definition.

The rate limits settings are expressed by a JSON object in a specific format. Here's what it looks like as part of a complete web site configuration:
{
"RateLimits": {
"SessionRpm": 600,
"SessionConcurrentRequests": 1,
"SessionConcurrentTransactions": 10
}
}
The example explicitly allows 10 open transactions per session, including on versions before 27.1.1.96. Use a positive integer for SessionConcurrentTransactions. If this setting is omitted, the website uses the default for its ERP.net version.
Note
To apply the changes, a restart of the website is required.
This task can be performed by your ERP.net instance administrator or by accessing the website Instance Manager and navigate to the 'Web Sites' section.
Š¢ypically, Instance Manager is located at the following address: https://<your-erpnet-instance>.my.erp.net/manage
