All Products
Search
Document Center

ApsaraMQ for RocketMQ:Billing of serverless instances

Last Updated:Dec 18, 2025

ApsaraMQ for RocketMQ serverless instances use a pay-as-you-go billing method. You are charged for the resources that you use. To improve resource utilization and reduce costs, you can select an instance that fits your business requirements.

Notes

Limits

If you use public network access for a serverless instance, you must modify your software development kit (SDK) code. For more information, see Version guide for public network access of Serverless instances.

Billable items

ApsaraMQ for RocketMQ serverless instances use the pay-as-you-go billing method. Billing starts when an instance is created, and bills are generated on an hourly basis.

The billable items are as follows:

image

Message requests fee

A message requests fee is charged when the billing method of an ApsaraMQ for RocketMQ serverless instance is pay-by-messaging-request.

Billing formula

Message requests fee = Total number of message requests × Unit price per request (USD/request)

Calculation rule for the number of message requests

Number of message requests = Number of received messages + Number of delivered messages

  • Number of received messages: The number of messages that the server-side receives from producers. For example, if five messages are received for a topic, the number of received messages is five.

  • Number of delivered messages: The number of times the server-side delivers messages to consumers. Each successful delivery to a consumer is counted as one delivery request, regardless of whether the message is processed or an ACK response is returned.

  • Payload size: The number of requests is calculated based on the message size in 4 KB blocks. A message smaller than 4 KB is counted as 4 KB. For example, if you deliver an 18 KB message, the number of delivery requests is calculated as ⌈18/4⌉=5.

    Note

    ⌈ ⌉ indicates rounding up.

Tiered pricing

The unit price for message requests for serverless instances varies by region. The following tables list the prices.

Unit prices in public cloud regions

Region

Tier

Total monthly message requests (100 millions)

Normal message (USD/million requests)

Scheduled/delayed message (USD/million requests)

Transactional message (USD/million requests)

Scheduled/delayed message (USD/million requests)

Transactional message (USD/million requests)

Ordered message (USD/million requests)

Send and consume

Consume

Consume

Send

Send

Send and consume

China (Hangzhou), China (Shanghai), China (Shenzhen), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Chengdu), China (Ulanqab), China (Heyuan), China (Guangzhou), China (Fuzhou - Local Region - Phasing Out), China (Nanjing - Local Region - Phasing Out), Zhengzhou (China Unicom Cloud), China (Hong Kong), Singapore, Japan (Tokyo), Germany (Frankfurt), UK (London), US (Silicon Valley), US (Virginia), UAE (Dubai), South Korea (Seoul), Thailand (Bangkok), Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila)

Tier 1

(0, 10]

0.305

1.525

Tier 2

(10, 50]

0.183

0.915

Tier 3

(50, 200]

0.153

0.765

Tier 4

>200

0.122

0.61

Unit prices in the Saudi Arabia region

Region

Tier

Total monthly message requests (100 millions)

Normal message (USD/million requests)

Scheduled/delayed message (USD/million requests)

Transactional message (USD/million requests)

Scheduled/delayed message (USD/million requests)

Transactional message (USD/million requests)

Ordered message (USD/million requests)

Send and consume

Consume

Consume

Send

Send

Send and consume

SAU (Riyadh - Partner Region)

Tier 1

(0, 10]

0.366

1.83

Tier 2

(10, 50]

0.2196

1.098

Tier 3

(50, 200]

0.1836

0.918

Tier 4

>200

0.1464

0.732

Instance fee

The instance fee is charged when the billing method of an ApsaraMQ for RocketMQ serverless instance is pay-by-messaging-request. This fee mainly covers the instance fees for PrivateLink in two zones. It also includes a free quota for connections and metadata. For more information about the quotas, see the relevant documentation.

Unit price

Region

Unit price (USD/instance/hour)

All regions

0.0452

Billing example

The fee for one month (30 days) is calculated as follows: 0.0452 × 24 × 30 = USD 32.544.

Provisioned capacity fee

The provisioned capacity fee is charged when the billing method of an ApsaraMQ for RocketMQ serverless instance is Provisioned + Elastic. This fee is calculated based on the provisioned capacity in transactions per second (TPS) and the usage duration.

Billing formula

Hourly provisioned capacity fee = Provisioned capacity (TPS) × Unit price of provisioned capacity (USD/TPS/hour)

Unit price

Unit prices in public cloud regions

Region

Tier

Shared

Dedicated

Provisioned capacity specification (TPS)

Unit price (USD/TPS/hour)

Provisioned capacity specification (TPS)

Unit price (USD/TPS/hour)

China (Hangzhou), China (Shanghai), China (Shenzhen), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Chengdu), China (Ulanqab), China (Heyuan), China (Guangzhou), China (Fuzhou - Local Region - Phasing Out), China (Nanjing - Local Region - Phasing Out), Zhengzhou (China Unicom Cloud), China (Hong Kong), Singapore, Japan (Tokyo), Germany (Frankfurt), UK (London), US (Silicon Valley), US (Virginia), UAE (Dubai), South Korea (Seoul), Thailand (Bangkok), Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila)

Tier 1

(0, 2000]

0.000135

(0, 5000]

0.000173

Tier 2

(2000, 8000]

0.000113

(5000, 20000]

0.000128

Tier 3

(8000, 50000]

0.00006

(20000, 100000]

0.000098

Tier 4

>50000

0.000045

>100000

0.000075

Unit prices in the Saudi Arabia region

Region

Tier

Shared

Dedicated

Provisioned capacity specification (TPS)

Unit price (USD/TPS/hour)

Provisioned capacity specification (TPS)

Unit price (USD/TPS/hour)

SAU (Riyadh - Partner Region)

Tier 1

(0, 2000]

0.000162

(0, 5000]

0.0002076

Tier 2

(2000, 8000]

0.0001356

(5000, 20000]

0.0001536

Tier 3

(8000, 50000]

0.000072

(20000, 100000]

0.0001176

Tier 4

>50000

0.000054

>100000

0.00009

Billing example

Assume that you have a shared serverless instance in the China (Hangzhou) region. The billing method is Provisioned + Elastic, and the provisioned capacity is 4,000 TPS. The hourly provisioned capacity fee is calculated as follows: 2,000 × 0.000135 + (4,000 - 2,000) × 0.000113 = USD 0.496. The fee for one month (30 days) is then calculated as follows: 0.496 × 24 × 30 = USD 357.12.

Elastic TPS fee

If the billing method for an ApsaraMQ for RocketMQ serverless instance is Provisioned + Elastic, you are charged an elastic TPS fee for any TPS usage that exceeds the provisioned capacity.

Billing formula

<hetu formula="Hourly elastic TPS fee=\sum_{\mathclap{1\le i\le 60}} [{T}i×Elastic TPS]×Elastic TPS unit price (USD/TPS/minute)" hetuid="79bd114d-a5d6-445a-b50d-77cd4fe3e995" style="display:inline-block;max-width:100%;overflow:auto;vertical-align:middle" type="xFormula"><span class="katex"><span aria-hidden="true" class="katex-html"><span class="base"><span class="strut" style="height:0.6833em;">Hourly elasticTPSfee=</span><span class="strut" style="height:2.4229em;vertical-align:-1.3728em;"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.05em;"><span style="top:-1.8723em;margin-left:0em;"><span class="pstrut" style="height:3.05em;"><span class="mord mtight"><span class="mord vbox mtight"><span class="thinbox mtight"><span class="clap mtight"><span class="strut" style="height:0.7955em;vertical-align:-0.136em;"><span><span class="mord mtight"><span class="mord mtight">1≤i≤60</span></span></span></span></span></span></span></span></span><span class="pstrut" style="height:3.05em;"><span class="mop op-symbol large-op">∑</span></span></span>​</span><span class="vlist" style="height:1.3728em;"><span></span></span></span></span>[<span class="mord mathnormal" style="margin-right:0.13889em;">T</span>i×</span><span class="strut" style="height:1em;vertical-align:-0.25em;">ElasticTPS]×</span><span class="strut" style="height:1em;vertical-align:-0.25em;">ElasticTPSunit price (USD/TPS/minute)</span></span></span></span></hetu>

In this formula, T1, T2, ..., Ti, ..., T60 represent the first minute, second minute, ..., i-th minute, ..., and 60th minute of the hour, respectively. represents the sum of the elastic TPS used within that hour.

Unit price

Unit prices in public cloud regions

Region

Unit price (USD/TPS/hour)

Shared

Dedicated

China (Hangzhou), China (Shanghai), China (Shenzhen), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Chengdu), China (Ulanqab), China (Heyuan), China (Guangzhou), China (Fuzhou - Local Region - Phasing Out), China (Nanjing - Local Region - Phasing Out), Zhengzhou (China Unicom Cloud), China (Hong Kong), Singapore, Japan (Tokyo), Germany (Frankfurt), UK (London), US (Silicon Valley), US (Virginia), UAE (Dubai), South Korea (Seoul), Thailand (Bangkok), Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila)

0.000019

0.000025

Unit prices in the Saudi Arabia region

Region

Unit price (USD/TPS/hour)

Shared

Dedicated

SAU (Riyadh - Partner Region)

0.0000228

0.00003

Billing example

Assume that you have a shared serverless instance in the China (Hangzhou) region. The billing method is Provisioned + Elastic, and the provisioned capacity is 5,000 TPS. In a specific hour, the instance runs as follows:

Time

Minute 00

Minute 01

Minute 02

Minute 03

......

Minute 58

Minute 59

Peak actual TPS of the instance (requests/second)

5200

5300

4000

4500

All less than 5,000

4800

5100

Incremental TPS value (requests/second)

200

300

0

0

0

0

100

In this hour, the elastic TPS fee for the instance is calculated as follows: (1 × 200 + 1 × 300 + 1 × 100) × 0.000019 = USD 0.0114.

Online client fee

Counting rule for online clients

One producer or one consumer object is counted as one online client.

Billing formula

If the number of online clients for an instance exceeds the free quota, you are charged for the excess clients. The fee is calculated as follows, with usage for less than one hour rounded up to one hour:

Online client fee = Number of billable online clients × Unit price per client (USD/client/hour)

Free quota for online clients

Deployment architecture

Capacity mode

TPS specification

Maximum online clients

Free online clients

Shared

Pay-by-messaging-request

All

5,000

500

Provisioned + Elastic

[2000, 20,000]

5,000

1,000

(20,000, 50,000]

8,000

1,600

(50,000, 100,000]

10,000

2,000

(100,000, 200,000]

20,000

4,000

Dedicated

Provisioned + Elastic

5,000

3,000

2,000

10,000

6,000

4,000

15,000

8,000

6,000

[20,000, 50,000]

10,000

8,000

(50,000, 100,000]

20,000

10,000

(100,000, 200,000]

40,000

20,000

(200,000, 300,000]

80,000

40,000

(300,000, 500,000]

100,000

50,000

(500,000, 1,000,000]

200,000

100,000

Unit price

Region

Unit price (USD/client/hour)

All regions

0.00003

Resource fee

Resources refer to the total number of topics and consumer groups. A resource fee is charged if the number of resources used by an instance exceeds the free quota.

Billing formula

If the number of resources used by an instance exceeds the free quota, you are charged for the excess resources. The fee is calculated as follows, with usage for less than one hour rounded up to one hour:

Resource fee = Number of billable resources × Unit price per resource (USD/resource/hour)

Free quota for resources

Deployment architecture

Maximum connections

TPS specification

Free resource quota (count)

Shared

Pay-by-messaging-request

All

100

Provisioned + Elastic

All

200

Dedicated

Provisioned + Elastic

[0, 10,000]

300

(10,000, 100,000]

500

(100,000, 200,000]

1,000

(200,000, 300,000]

1,500

(300,000, 500,000]

2,000

(500,000, 1,000,000]

3,000

Unit price

Region

Tier

Number of resources (exceeding the free quota)

Unit price (USD/resource/hour)

All regions

Tier 1

[0, 500]

0.00015

Tier 2

(500, 1000]

0.000092

Tier 3

>1000

0.00006

Storage fee

For ApsaraMQ for RocketMQ serverless instances, a message storage fee is charged based on the storage space used and the storage duration. A storage duration of less than one hour is rounded up to one hour.

Billing formula

Hourly storage fee = Used storage space (GB) × Unit price for storage (USD/GB/hour)

Unit price

Region

Unit price for storage space (USD/GB/hour)

All regions

0.0002

Public network fee

If you use public network access, ApsaraMQ for RocketMQ charges a fee for outbound public network traffic.

If public network access is not enabled, no fees are charged for outbound public network traffic.

Billing formula

Hourly public network fee = Total outbound public network traffic (GB) × Unit price for traffic (USD/GB)

Unit price

Region

Unit price for outbound public network traffic (USD/GB)

China (Hangzhou), China (Shanghai), China (Shenzhen), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Chengdu), China (Ulanqab), China (Heyuan), China (Guangzhou), China (Hong Kong), Singapore, Japan (Tokyo), Germany (Frankfurt), UK (London), US (Silicon Valley), US (Virginia), UAE (Dubai), South Korea (Seoul), Thailand (Bangkok), Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila)

0.15

SAU (Riyadh - Partner Region)

0.19