ApsaraMQ for RocketMQ Serverless instances use the pay-as-you-go billing method, which means you are billed based on the resources you use. This allows for flexible resource allocation without prior reservation, which improves resource utilization and reduces your business costs.
Limits
Serverless instances are available only in specific regions. Support for additional regions will be available soon. For more information about the supported regions, see Supported regions.
Using public network access for a Serverless instance requires you to adapt the software development kit (SDK) code. For more information, see Version guide for public network access to Serverless instances.
Billable items
Billable item | Required | Billing method | Billing cycle |
Fees for message requests | Required | Pay-as-you-go | Hour |
Storage fees | Required | ||
Topic fees | Required | ||
Intranet fees | Required | ||
Public network fees | Optional Not charged if public network access is disabled. | ||
Message trace fees | Optional Not charged if the message trace feature is disabled. |
Fees for message requests
ApsaraMQ for RocketMQ Serverless instances are billed based on the total number of API calls for sending and receiving messages.
Billing formula
Fees for API calls = Total number of API calls × Unit price per call (USD/call)
Message send/receive count calculation rules
Message Send and Receive Count = Message Receive Count + Message Delivery Count.
Number of received messages: The number of messages that the server receives from producers. For example, if a topic receives five messages, the number of received messages is five.
Number of delivered messages: The number of times the server delivers messages to consumers. Each successful delivery of a message is counted as one delivery, regardless of whether the message is processed or an ACK response is returned.
Payload size: The number of API calls for billing is calculated based on the message size. The base unit for calculation is 4 KB. The size of a message smaller than 4 KB is rounded up to 4 KB. For example, if you deliver an 18 KB message, the number of deliveries is calculated as ⌈18/4⌉ = 5.
Note⌈ ⌉ indicates rounding up to the nearest integer.
Tiered pricing rules
The unit price for messages sent and received by Serverless instances is based on a tiered billing model. The pricing tiers are determined by the total monthly message volume of an instance. Messages in each tier are charged at the unit price for that tier.
When calculating the cumulative number of calls for a tier, calls for different message types, and calls for sending and subscribing to messages, are accumulated separately.
For example, the number of calls for sending normal messages and the number of calls for subscribing to normal messages are not added together.
Sending normal messages refers to producers sending normal messages. Sending advanced messages refers to producers sending scheduled and delayed messages, ordered messages, or transactional messages.
In ApsaraMQ for RocketMQ, messages can be delivered concurrently or sequentially. You can select a delivery method when you create a group. The unit prices for different delivery methods vary.
Tiered unit prices
The unit prices of API calls for Serverless instances vary by region. The following tables list the prices.
Unit prices for public cloud regions
Unit prices for sending and subscribing to messages on Standard Edition instances
Region | Billing tier | Total monthly messages (in hundreds of millions) | Sending normal messages (USD per million) | Subscribing to normal messages (USD per million) | Sending advanced messages (USD per million) | Subscribing to advanced messages (USD per million) |
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) | Tier 1 | (0, 10] | 0.15 | 0.06 | 0.77 | 0.31 |
Tier 2 | (10, 50] | 0.09 | 0.04 | 0.46 | 0.19 | |
Tier 3 | (50, 200] | 0.08 | 0.03 | 0.39 | 0.15 | |
Tier 4 | >200 | 0.06 | 0.02 | 0.31 | 0.12 |
Unit prices for sending and subscribing to messages on Professional Edition instances
Region | Billing tier | Total monthly messages (in hundreds of millions) | Sending normal messages (USD per million) | Subscribing to normal messages (USD per million) | Sending advanced messages (USD per million) | Subscribing to advanced messages (USD per million) |
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) | Tier 1 | (0, 10] | 0.46 | 0.19 | 2.32 | 0.93 |
Tier 2 | (10, 50] | 0.28 | 0.11 | 1.39 | 0.56 | |
Tier 3 | (50, 200] | 0.23 | 0.09 | 1.16 | 0.46 | |
Tier 4 | >200 | 0.19 | 0.07 | 0.93 | 0.37 |
Unit price for the Saudi Arabia region
Unit prices for sending and subscribing to messages on Standard Edition instances
Region | Billing tier | Total monthly messages (in hundreds of millions) | Sending normal messages (USD per million) | Subscribing to normal messages (USD per million) | Sending advanced messages (USD per million) | Subscribing to advanced messages (USD per million) |
SAU (Riyadh - Partner Region) | Tier 1 | (0, 10] | 0.19 | 0.07 | 0.93 | 0.37 |
Tier 2 | (10, 50] | 0.11 | 0.04 | 0.56 | 0.22 | |
Tier 3 | (50, 200] | 0.09 | 0.04 | 0.46 | 0.19 | |
Tier 4 | >200 | 0.07 | 0.03 | 0.37 | 0.15 |
Unit prices for sending and subscribing to messages on Professional Edition instances
Region | Billing tier | Total monthly messages (in hundreds of millions) | Sending normal messages (USD per million) | Subscribing to normal messages (USD per million) | Sending advanced messages (USD per million) | Subscribing to advanced messages (USD per million) |
SAU (Riyadh - Partner Region) | Tier 1 | (0, 10] | 0.56 | 0.22 | 2.79 | 1.11 |
Tier 2 | (10, 50] | 0.33 | 0.13 | 1.67 | 0.67 | |
Tier 3 | (50, 200] | 0.28 | 0.11 | 1.39 | 0.56 | |
Tier 4 | >200 | 0.22 | 0.09 | 1.11 | 0.45 |
Billing example
This example is for a Serverless ApsaraMQ for RocketMQ Standard Edition instance in the China (Hangzhou) region. Assume the instance has the following hourly usage:
100 million normal messages are sent.
200 million normal messages are subscribed to.
No advanced messages are sent or subscribed to.
The billing for sent and subscribed messages for this instance is as follows:
Time of day (hour) | Hour 1 | Hour 2 | Hour 3 | ... | Hour 10 | Hour 11 | Hour 12 | ... |
Message sending fees | ||||||||
Number of normal messages sent per hour | 100 million | 100 million | 100 million | ... | 100 million | 100 million | 100 million | ... |
Cumulative number of normal messages sent | 100 million | 200 million | 300 million | ... | 1 billion | 1.1 billion | 1.2 billion | ... |
Unit price for sending normal messages (USD/million messages) | 0.15 (Tier 1) | 0.15 (Tier 1) | 0.15 (Tier 1) | ... | 0.15 (Tier 1) | 0.09 (Tier 2) | 0.09 (Tier 2) | ... |
Hourly fee for sending normal messages (USD) | 15 | 15 | 15 | ... | 15 | 9 | 9 | ... |
Message subscription fees | ||||||||
Daily Normal Message Subscription Count | 200 million | 200 million | 200 million | ... | 200 million | 200 million | 200 million | ... |
Cumulative number of normal messages subscribed | 200 million | 400 million | 600 million | ... | 2 billion | 2.2 billion | 2.4 billion | ... |
Unit price for subscribing to normal messages (USD/million messages) | 0.06 (Tier 1) | 0.06 (Tier 1) | 0.06 (Tier 1) | ... | 0.04 (Tier 2) | 0.04 (Tier 2) | 0.04 (Tier 2) | ... |
Hourly fee for subscribing to normal messages (USD) | 12 | 12 | 12 | ... | 8 | 8 | 8 | ... |
Storage fees
ApsaraMQ for RocketMQ Serverless instances are billed based on the size of messages stored on the server and the storage duration. A storage duration of less than 1 hour is rounded up to 1 hour.
Billing formula
Hourly storage fees = Storage space used (GB) × Unit price for storage (USD/GB/hour)
Unit price
Region | Unit price for storage space (USD/GB/hour) |
All supported regions | 0.0002 |
Topic fees
ApsaraMQ for RocketMQ Serverless instances are billed based on the number of topics.
You are charged for a topic as long as it exists, regardless of whether messages are sent to the topic. You can delete topics that you no longer need to avoid unnecessary fees.
Billing formula
Hourly topic fees = Number of topics created in the instance × Unit price per topic (USD/topic/hour)
The number of topics is calculated based on the peak number of topics in an instance within a specific hour.
For example, if you create 50 topics and then delete 20 of them within one minute, you are charged for 50 topics for that hour.
Unit price
The unit price per topic is tiered based on the number of topics.
Pricing tier | Total number of topics | Region (All supported regions) | |
Standard Edition instance Unit price per topic (USD/topic/hour) | Professional Edition instance Unit price per topic (USD/topic/hour) | ||
Tier 1 | (0, 10] | 0.006 | 0.012 |
Tier 2 | (10, 50] | 0.003 | 0.006 |
Tier 3 | (50, 200] | 0.002 | 0.003 |
Tier 4 | >200 | 0.001 | 0.002 |
Billing example
The following table shows the number of topics created and the corresponding fees for a Serverless ApsaraMQ for RocketMQ Standard Edition instance over a two-hour period.
Time | Number of topics created | Billable quantity | Unit price | Total fees |
Hour 1 |
| 30 |
| 10 × 0.006 + 20 × 0.003 = USD 0.12 |
Hour 2 | 50 new topics created | 50 + 20 = 70 |
| 10 × 0.006 + 40 × 0.003 + 20 × 0.002 = USD 0.22 |
Intranet fees
ApsaraMQ for RocketMQ Serverless instances create managed private endpoints. You are charged intranet fees when you access the server through a virtual private cloud (VPC).
Intranet fees are charged by the PrivateLink service. ApsaraMQ for RocketMQ does not charge these fees.
For more information about intranet fees, see PrivateLink billing.
Make sure that your PrivateLink instance is active. If your PrivateLink instance has an overdue payment, the instance may be suspended or released. This may cause your ApsaraMQ for RocketMQ Serverless instance to become unavailable or be released along with the PrivateLink instance.
Public network fees
When you use public network access, ApsaraMQ for RocketMQ charges you for the outbound traffic over the public network.
If you do not enable public network access, you are not charged for outbound traffic over the public network.
Billing formula
Hourly public network fees = Total outbound traffic over the public network (GB) × Unit price for traffic (USD/GB)
Unit price
Region | Unit price for outbound traffic over the public network (USD/GB/hour) |
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 |
Message trace fees
If you enable the message trace feature, your ApsaraMQ for RocketMQ Serverless instance is billed based on the number of message traces.
Rules for calculating message traces
The number of message traces is calculated using the following formula: Number of messages that the server receives from producers during a billing cycle + (Number of messages that the server delivers to consumers × 2).
During message consumption, a message trace is generated in two stages: before the message enters the consumption logic and after the consumption logic is complete. Therefore, the number of messages delivered from the server to consumers is multiplied by two.
Billing formula
Hourly message trace fees = Number of message traces × Unit price per trace (CNY/trace)
Unit price
Region | Unit price per message trace (USD/million traces) |
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.015 |
SAU (Riyadh - Partner Region) | 0.019 |