Messaging is a basic feature provided by Message Queue for Apache RocketMQ. After you activate Message Queue for Apache RocketMQ, the messaging feature is enabled by default. This topic describes the pricing details of the messaging feature provided by Message Queue for Apache RocketMQ and provides billing examples.

Standard Edition instances

Standard Edition instances are billed on a pay-as-you-go basis. Standard Edition instances are suitable for scenarios in which the number of messages is small or greatly fluctuates. You are charged only for the messages that are transmitted and the resources that are used. This improves resource utilization.

Free quotas

Standard Edition instances of Message Queue for Apache RocketMQ are billed on a pay-as-you-go basis and provide free quotas for specific items. However, you may be charged for the items in the future. If the items are no longer free of charge, Alibaba Cloud will notify you by text message, Alibaba Cloud announcement, or internal message.

Note The following items are free of charge for pay-as-you-go instances but not for subscription instances.
  • Message accumulation
  • The first 20 million API calls that are initiated across all regions each month.

Billable items

The messaging fee for a Standard Edition instance is calculated by using the following formula.

Messaging fee for a Standard Edition instance

The fee for API calls is calculated by using the following formula: API call fee = (Number of API calls to send messages + Number of API calls to subscribe to messages) × Price for an API call.

You are charged based on the total number of API calls each month. Tiered pricing is used to calculate the fee, and the unit price for API calls also varies based on the region.

The following rules are used to calculate the number of API calls:
  • When you initiate an API call to send or subscribe to one normal message, the system counts this operation as one API call regardless of whether the call is successful.
  • The number of API calls that are required to send and subscribe to a featured message is counted as five times the number of API calls that are required to send and subscribe to a normal message. For example, if you send a transactional message once and subscribe to the message twice, the number of API calls is 15 based on the following formula: 1 × 5 + 2 × 5 = 15.
  • The maximum size of a message body is 4 MB. The size of the message that is transmitted in each API call is 4 KB. For example, if you send or subscribe to a 16 KB message, your instance is billed for four API calls based on the following formula: 16/4 = 4.
Note Message Queue for Apache RocketMQ supports the following types of messages: normal, scheduled or delayed, transactional, and ordered messages. All these messages have advanced features except for normal messages. For more information, see Message types.

The fee for topic usage is calculated by using the following formula: Topic usage fee = Usage fee for a single topic each day × Number of topics × Number of days

You are charged a topic usage fee for each topic once a day. The price for topics varies based on the number of API calls that are made by the topic.

Important You are charged for each topic that you create, regardless of whether the topic is used. We recommend that you delete the topics that are not required at the earliest opportunity to avoid unnecessary fees.

API call fee

  • Prices at different tiers
    Table 1. API call fee
    Billing tierNumber of API calls (100 million calls/month)Unit price (USD/1 million calls)
    China (Hong Kong), Singapore, Japan (Tokyo), and UAE (Dubai)Malaysia (Kuala Lumpur), India (Mumbai), Indonesia (Jakarta), and Philippines (Manila)China (Shanghai), Australia (Sydney), US (Virginia), US (Silicon Valley), Germany (Frankfurt), and UK (London)
    First tier0‒100.450.420.31
    Second tier10‒500.410.380.28
    Third tier50‒1000.340.310.23
    Fourth tier100‒5000.30.270.20
    Fifth tierMore than 5000.270.250.19
  • Rules for tiered pricing

    The tiered pricing schedule is based on the total number of API calls that are made by an Alibaba Cloud account each month.

    Note

    If an Alibaba Cloud account authorizes another Alibaba Cloud account by using a role, the bill is charged to the authorizing Alibaba Cloud account. If you use an Alibaba Cloud account to authorize RAM users in the Alibaba Cloud account, the bill is charged to the Alibaba Cloud account.

  • Example on calculating the number of API calls
    • A topic produces 7 million normal messages per day, the number of times for message consumption is estimated to be 8 million considering that a topic may be subscribed to by multiple groups and the messages may be retried, and the size of each message is 40 KB.
    • The topic also produces 3 million featured messages per day, the number of times for message consumption is 3 million, and the size of each message is 2 KB.

    The number of API calls that are initiated to send and receive messages per day is calculated based on the following formula: Number of API calls = (Number of produced normal messages + number of consumed normal messages) × Multiplier for message size + (Number of produced featured messages + Number of consumed featured messages) × 5 × Multiplier for message size. Therefore, the total number of API calls that are initiated to send and receive messages per day is 180 million based on the following equation: (7 million + 8 million) × ⌈40/4⌉ + (3 million + 3 million) × 5 × ⌈2/4⌉ = 180 million.

    Note ⌈ ⌉ indicates that the number is rounded up to the smallest integer that is greater than or equal to the value.
  • Example on calculating the API call fee

    The following table describes the total number of API calls and the tiered pricing schedule for an instance that resides in the China (Shanghai) region and produces 500 million API calls per day.

    ItemFirst day of a monthSecond day of a monthThird day of a monthFourth day of a month...Eleventh day of a month...
    Number of API calls500 million500 million500 million500 million...500 million...
    Total API calls per month500 million1 billion1.5 billion2 billion...5.5 billion...
    Unit price (USD/1 million calls)0.31 (first tier)0.31 (first tier)0.28 (second tier)0.28 (second tier)...0.23 (third tier)...
    Fees for the current day (USD)155155140140...115...

Topic usage fee

  • Tiered unit price
    Table 2. Topic usage fee
    Billing tierNumber of API calls (100 million calls/topic/day)Unit price (USD/topic/day)
    China (Hong Kong), Singapore, Japan (Tokyo), and UAE (Dubai)Malaysia (Kuala Lumpur), India (Mumbai), Indonesia (Jakarta), and Philippines (Manila)China (Shanghai), Australia (Sydney), US (Virginia), US (Silicon Valley), Germany (Frankfurt), and UK (London)
    First tier0‒1000.450.420.31
    Second tier100‒5000.340.310.23
    Third tier500‒1,0000.110.110.08
    Fourth tierMore than 1,00000 0
  • Rules for tiered pricing

    The tiered pricing schedule is based on the total number of API calls that are made by each topic every day.

    Note

    If an Alibaba Cloud account authorizes another Alibaba Cloud account by using a role, the bill is charged to the authorizing Alibaba Cloud account. If you use an Alibaba Cloud account to authorize RAM users in the Alibaba Cloud account, the bill is charged to the Alibaba Cloud account.

  • Example on calculating the topic usage fee

    In this example, an instance that resides in the China (Shanghai) region is used, and several topics are created on the instance.

    You are charged a topic usage fee for each topic once a day. The daily topic usage fee is the sum of the fees that are generated by all topics per day.

    TopicFirst day of a monthSecond day of a monthThird day of a month...
    Topic_1

    If the number of API calls on the day is 100,000, the fee falls in the first tier.

    Topic usage fee: USD 0.31.

    If the number of API calls on the day is 1.2 million, the fee falls in the second tier.

    Topic usage fee: USD 0.23.

    If the number of API calls on the day is 300,000, the fee falls in the first tier.

    Topic usage fee: USD 0.31.

    ...
    Topic_2

    If the number of API calls on the day is 5.5 million, the fee falls in the third tier.

    Topic usage fee: USD 0.08.

    If the number of API calls on the day is 800,000 million, the fee falls in the first tier.

    Topic usage fee: USD 0.31.

    If the number of API calls on the day is 1 million, the fee falls in the first tier.

    Topic usage fee: USD 0.31.

    ...
    ...............
    Topic_n............

Enterprise Platinum Edition instances

Enterprise Platinum Edition instances are billed on a subscription basis. The instances are suitable for scenarios in which the service level agreement (SLA) requirements are high or the number of messages is large. The subscription billing method is used to reserve resources in advance. This helps reduce costs.

Billable items

The messaging fee of an Enterprise Platinum Edition instance is calculated by using the following formula.Messaging fee for Enterprise Platinum Edition instances
  • Fee for the selected specification that provides maximum TPS: The maximum TPS specifies the total number of messages that can be sent and subscribed to per second.

    The maximum size of a message body is 4 MB. The size of the message that is transmitted in each API call is 4 KB. If 5,000 messages are sent per second, 5,000 messages are delivered per second, and the average body size for each message is 16 KB, the maximum TPS is 40,000 messages per second based on the following formula: ⌈16/4⌉ × (5,000 + 5,000) = 40,000.

  • Fee for the selected topic specification: The topic specification specifies the maximum number of topics that you can create on the Enterprise Platinum Edition instance.
  • Fee for the selected storage specification: The storage specification specifies the size of the exclusive physical storage space for the Enterprise Platinum Edition instance.

Billing details

For information about the pricing and related examples of Enterprise Platinum Edition instances, visit the buy page of Enterprise Platinum Edition instances.