All Products
Search
Document Center

Message Service:Billing overview

Last Updated:Apr 10, 2024

This topic describes the billable items and billing details of Message Service (MNS). You can select a messaging model that meets your business requirements based on the description of this topic.

Billable items

The following table describes the billable items of MNS.

Billable item

Description

Billing method

Billing cycle

API requests to topics

You are charged based on the number of API requests initiated by clients to topics.

Pay-as-you-go

Fees for MNS are calculated on an hourly basis and bills are issued every 24 hours. The fees are automatically deducted from your account balance. Each day, Alibaba Cloud calculates your resource usage of the previous day, issues a bill, and deducts the fees from your Alibaba Cloud account balance.

API requests to queues

You are charged based on the number of API requests initiated by clients to queues.

Message size

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.

Topics

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

Queues

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

Outbound Internet traffic

Free of charge. However, you may be charged for this item in the future. If this item is no longer free of charge, Alibaba Cloud will notify you by an announcement, text message, or internal message.

Push type

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

  • HTTP: Free of charge. However, you may be charged for this push type in the future. If this push type is no longer free of charge, Alibaba Cloud will notify you by an announcement, text message, or internal message.

Fee for topics

Billing formula

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

Unit prices

Region

Unit price (USD per topic-day)

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), Indonesia (Jakarta), and India (Mumbai)

0.43

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

0.46

SAU (Riyadh)

0.552

Important
  • Topics are billed on a daily basis and the bills are issued 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 the corresponding fees.

Date

Number of topics created

Number of topics billed

Unit price (USD per topic-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 queues

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, Australia (Sydney), Thailand (Bangkok), Germany (Frankfurt), UK (London), US (Silicon Valley), US (Virginia), UAE (Dubai), Malaysia (Kuala Lumpur), Indonesia (Jakarta), and India (Mumbai)

0.11

SAU (Riyadh)

0.132

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

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

  • Before June 8, 2019, Alibaba Cloud charged users for no more than 10 queues in each region for all queues created in MNS. This provides users with sufficient time to familiarize themselves with MNS and optimize usage. Starting from June 8, 2019, Alibaba Cloud charges users for all queues created in MNS. We recommend that you delete the queues that you no longer need 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 the 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 topics

Billing formula

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

Unit prices

MNS 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), and China (Ulanqab)

0.32

Malaysia (Kuala Lumpur), Indonesia (Jakarta), and India (Mumbai)

0.43

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

0.46

SAU (Riyadh)

0.552

Important
  • The number of API requests is calculated on an hourly basis, measured in millions, and accurate to two decimal places.

  • 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.

  • 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.

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

Billing example

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 2 x 0.32 = 0.64 USD.

Fee for API requests to queues

Billing formula

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

Unit prices

MNS 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), Indonesia (Jakarta), and India (Mumbai)

0.43

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

0.46

SAU (Riyadh)

0.552

Important
  • The number of API requests is calculated on an hourly basis, measured in millions, and accurate to two decimal places.

  • 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.

  • 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.

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

Billing example

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 2 × 0.32 = 0.64 USD.