ApsaraMQ for MQTT limits the rate at which each API operation can be called, measured in queries per second (QPS). Requests that exceed these limits are throttled or blocked, depending on the type of limit.
Limit types
Two types of QPS limits apply to API operations on an ApsaraMQ for MQTT broker:
Limit type | Scope | Threshold | Behavior when exceeded |
Per-user limit | Single user, per API operation | Varies by operation. See Per-user QPS limits by API operation below. | Throttling is triggered. Only traffic within the Service Level Agreement (SLA) is guaranteed. |
Per-IP limit | Single IP address, per API operation | 300 QPS (globally applied) | The IP address is blocked. |
If your application is throttled, implement exponential backoff with retry logic to avoid cascading failures.
Per-user QPS limits by API operation
Token management
API operation | QPS limit |
100 | |
100 | |
5 |
Group management
API operation | QPS limit |
10 | |
10 | |
10 |
Device credential management
API operation | QPS limit |
500 | |
500 | |
500 | |
500 |
Trace and diagnostics
API operation | QPS limit |
500 | |
500 | |
500 | |
500 |
Messaging
API operation | QPS limit |
1,000 |
Session management
API operation | QPS limit |
500 | |
100 |