All Products
Search
Document Center

Simple Message Queue (formerly MNS):Billing overview

Last Updated:Dec 16, 2024

This topic describes the billing of Simple Message Queue (SMQ, formerly MNS), including the billing method, billable items, billing cycle, and billing details.

Billing method

SMQ supports only the pay-as-you-go billing method. Fees are calculated each hour and bills are generated at an interval of 24 hours. Fees that are generated on the previous day are deducted from your Alibaba Cloud account balance based on the bill generated on the current day.

SMQ provides a price calculator:

Simple Message Queue (formerly MNS) Price Calculator

Billable items

The following table describes the billable items of SMQ.

image

Fee for queues

You are charged based on the number of queues on a daily basis.

Billing formula

Fee for queues = Number of queues × Unit price of queues

Unit prices

Region

Unit price (USD per queue-day)

China (Hangzhou), China (Shanghai), China (Shenzhen), China (Beijing), China (Qingdao), China (Zhangjiakou), China (Hohhot), China (Chengdu), China (Guangzhou), and China (Ulanqab)

0.08

China (Hong Kong), Japan (Tokyo), South Korea (Seoul), Singapore, Thailand (Bangkok), Germany (Frankfurt), UK (London), US (Silicon Valley), US (Virginia), UAE (Dubai), Malaysia (Kuala Lumpur), and Indonesia (Jakarta)

0.11

SAU (Riyadh)

0.132

Important
  • Queues are billed on a daily basis and the bills are issued to the Alibaba Cloud account.

  • If you no longer need a queue, delete the queue at the earliest opportunity to prevent unnecessary costs.

Billing examples

For example, you create queues in the China (Hangzhou) region. The following table describes the number of created queues and corresponding fees:

Date

Number of queues created

Number of queues billed

Unit price (USD per queue-day)

Fee (USD)

Day 1

  • Created: 30

  • Deleted: 10

  • Remaining: 20

30

0.08

0.08 × 30=2.4

Day 2

Created: 50

50 + 20 = 70

0.08

0.08 × 70=5.6

Fee for API requests to queues

Billing rules

  • The message body in each API request has a size limit of 64 KB. If you want to send a message whose size is larger than 64 KB, you must call multiple API requests to send the message. For example, if you want to publish or subscribe to a message of 256 KB, four API requests are called to publish or subscribe to the message. The number of API requests is calculated by using the following formula: 256/64 = 4.

  • You are charged for API requests to queues over the Internet and the internal network.

  • After you delete a queue, stop sending API requests to the queue at the earliest opportunity. Otherwise, you are still charged for the API requests that are sent to the queue.

Billing formula

Fee for API requests to queues = Total number of API requests to queues × Unit price of API requests to queues

Unit prices

SMQ provides a free quota of 20 million API requests per month. You are charged for the excess API requests. The following table describes the unit prices of API requests to queues:

Region

Unit price (USD per million requests)

China (Hangzhou), China (Shanghai), China (Shenzhen), China (Beijing), China (Qingdao), China (Zhangjiakou), China (Hohhot), China (Chengdu), China (Guangzhou), and China (Ulanqab)

0.32

Malaysia (Kuala Lumpur) and Indonesia (Jakarta)

0.43

China (Hong Kong), Singapore (Singapore), Japan (Tokyo), Australia (Sydney), US (Silicon Valley), US (Virginia), Malaysia (Kuala Lumpur), Indonesia (Jakarta), and Germany (Frankfurt)

0.46

SAU (Riyadh)

0.552

Billing examples

For example, you create queues in the China (Hangzhou) region. The unit price for API requests to the queues is USD 0.32 per million requests. You are provided with a free quota of 20 million requests and charged for the excess requests. In this example, 22 million requests are sent to the queues, which exceeds the free quota by 2 million. In this case, the fee for API requests to queues is calculated based on the following formula: 2 x 0.32 = 0.64 USD.

Fee for topics

You are charged based on the number of topics on a daily basis.

Billing formula

Fee for topics = Number of topics × Unit price of topics

Unit prices

Region

Unit price (USD per million requests)

China (Hangzhou), China (Shanghai), China (Shenzhen), China (Beijing), China (Qingdao), China (Zhangjiakou), China (Hohhot), China (Chengdu), China (Guangzhou), China (Ulanqab)

0.32

Malaysia (Kuala Lumpur), Indonesia (Jakarta)

0.43

China (Hong Kong), Japan (Tokyo), South Korea (Seoul), Singapore, Thailand (Bangkok), Germany (Frankfurt), UK (London), US (Silicon Valley), US (Virginia), UAE (Dubai)

0.46

SAU (Riyadh - Partner Region)

0.552

Important
  • Topics are billed on a daily basis and the bills are billed to the Alibaba Cloud account.

  • If you no longer need a topic, delete the topic at the earliest opportunity to prevent unnecessary costs.

Billing examples

For example, you create topics in the China (Hangzhou) region. The following table describes the number of created topics and corresponding fees:

Date

Number of topics created

Number of topics billed

Unit price (USD per queue-day)

Fee (USD)

Day 1

  • Created: 30

  • Deleted: 10

  • Remaining: 20

30

0.32

0.32 × 30=9.6

Day 2

Created: 50

50 + 20=70

0.32

0.32 × 70=22.4

Fee for API requests to topics

Billing rules

  • The message body in each API request has a size limit of 64 KB. If you want to send a message whose size is larger than 64 KB, you must call multiple API requests to send the message. For example, if you want to publish or subscribe to a message of 256 KB, four API requests are called to publish or subscribe to the message. The number of API requests is calculated by using the following formula: 256/64 = 4.

  • You are charged for API requests to topics over the Internet and the internal network.

  • After you delete a topic, stop sending API requests to the topic at the earliest opportunity. Otherwise, you are still charged for the API requests that are sent to the topic.

Billing formula

Fee for API requests to topics = Total number of API requests to topics × Unit price of API requests to topics

Unit prices

SMQ provides a free quota of 20 million API requests per month. You are charged for the excess API requests. The following table describes the unit prices of API requests to topics:

Region

Unit price (USD per million requests)

China (Hangzhou), China (Shanghai), China (Shenzhen), China (Beijing), China (Qingdao), China (Zhangjiakou), China (Hohhot), China (Chengdu), China (Guangzhou), China (Ulanqab)

0.32

Malaysia (Kuala Lumpur), Indonesia (Jakarta)

0.43

China (Hong Kong), Singapore, Japan (Tokyo), US (Virginia), US (Silicon Valley), Germany (Frankfurt), UAE (Dubai), UK (London), Thailand (Bangkok), South Korea (Seoul)

0.46

SAU (Riyadh)

0.552

Billing examples

For example, you create topics in the China (Hangzhou) region. The unit price for API requests to the topics is USD 0.32 per million requests. You are provided with a free quota of 20 million requests and charged for the excess requests. In this example, 22 million requests are sent to the topics, which exceeds the free quota by 2 million. In this case, the fee for API requests to topics is calculated based on the following formula:2 × 0.32 = 0.64 USD.

Fee for subscription

Important

You are currently not charged for the HTTP of the message that you want to push. Before this item starts to charge fees, Alibaba Cloud will notify you by announcement, text message, or internal message in advance.

Subscription type

Billing overview

Queue

You are not charged for pushing messages to SMQ queues. For information about the billing of SMQ queues, see the Fee for queues and Fee for API requests to queues sections of this topic.

HTTP

You are charged based on the total number of pushing messages to HTTP services.

Fee for outbound Internet traffic

This item is currently free of charge. Before this item starts to charge fees, Alibaba Cloud will notify you by announcement, text message, or internal message in advance.