Simple Message Queue (formerly MNS) imposes constraints and specifications on certain metrics. Make sure that your usage stays within these limits to avoid unexpected behavior in your applications.
Queue model limits
|
Item |
Limit |
Description |
|
Name length |
120 characters |
If exceeded, queue creation fails. |
|
Number of queues |
1,000 Note
If you need more, log on to the Quota Center console to apply for an increase to the Maximum Queue Quantity in a Single Region. For detailed steps, see Submit an application to increase a quota. |
None |
|
Message size |
64 KB |
If exceeded, the message is discarded. |
|
Batch operation |
16 messages |
None |
|
Long polling |
30 seconds |
None |
|
Message retention period |
7 days |
After the retention period expires, messages are automatically deleted on a rolling basis. Configure the retention period based on your business requirements. |
Topic model limits
|
Item |
Limit |
Description |
|
Name length |
120 characters |
If exceeded, topic creation fails. |
|
Number of topics |
1,000 Note
If you need more, log on to the Quota Center console to apply for an increase to the Maximum Topic Quantity in a Single Region. For detailed steps, see Submit an application to increase a quota. |
None |
|
Message size |
64 KB |
If exceeded, the message is discarded. |
|
Subscriptions per topic |
100 |
None |
|
Message retention period |
1 day |
After the retention period expires, messages are automatically deleted on a rolling basis. Configure the retention period based on your business requirements. |
|
Message filtering tag |
1 |
Used for message filtering. Up to 16 characters. |
|
Queue subscription rule |
The queue's message size must be greater than or equal to the topic's message size. |
If exceeded, subscription creation fails. |
Throttling policy
See Throttling policy.