All Products
Search
Document Center

ApsaraMQ for RocketMQ:Topic fees

Last Updated:Dec 04, 2024

If the number of topics on a subscription or pay-as-you-go ApsaraMQ for RocketMQ instance exceeds the specified free topic quota, you are charged for the excess topics. This topic describes the billing rules of topics.

Instance quotas

Standard Edition instances

Sub-category edition

Computing specification

Free topic quota

Maximum topic quota

Maximum group quota

Standalone Edition (no longer sold)

rmq.s1.micro

100

100

1,000

Cluster High-availability Edition

rmq.s2.2xlarge

300

rmq.s2.4xlar

rmq.s2.6xlarge

500

Professional Edition instances

Sub-category edition

Computing specification

Free topic quota

Maximum topic quota

Maximum group quota

Standalone Edition (no longer sold)

rmq.p1.micro

150

150

1,500

Cluster High-availability Edition

rmq.p2.4xlarge

500

2,000

rmq.p2.6xlarge

rmq.p2.10xlarge

1,000

rmq.p2.20xlarge

rmq.p2.50xlarge

2,000

rmq.p2.100xlarge

rmq.p2.150xlarge

Enterprise Platinum Edition instances

Sub-category edition

Computing specification

Free topic quota

Maximum topic quota

Maximum group quota

Cluster High-availability Edition

rmq.u2.10xlarge

200

3,000

4,000

rmq.u2.20xlarge

rmq.u2.40xlarge

rmq.u2.100xlarge

rmq.u2.150xlarge

rmq.u2.200xlarge

rmq.u2.400xlarge

rmq.u2.600xlarge

rmq.u2.1000xlarge

Billing rules

  • If the number of topics on an instance does not exceed the free topic quota, you are not charged topic fees. For information about the free quotas, see Instance quotas.

  • If the number of topics on an instance exceeds the free topic quota, you are charged for the excess topics.

    For example, if you purchase a pay-as-you-go ApsaraMQ for RocketMQ Standard Edition (Cluster High-availability Edition) instance whose computing specification is rmq.s2.2xlarge, the free topic quota of the instance is 100. If the current number of topics on the instance is 120, you are charged for the excess 20 topics based on the following formula:

    Number of paid topics = Current number of topics on the instance - Free topic quota of the instance

Billing formula

Topic fees are billed on an hourly basis. A usage period that is shorter than 1 hour is rounded up to 1 hour.

Topic fee per hour = Number of paid topics × Unit price of topics (USD per topic-hour)

Unit prices

The unit prices of topics vary based on the number of topics.

Billing tier

Paid topics

Region (all supported regions)

Unit price of topics on Standard Edition instances (USD per topic-hour)

Unit price of topics on Professional Edition and Enterprise Platinum Edition instances (USD per topic-hour)

First tier

(0,10]

0.006

0.012

Second tier

(10,50]

0.003

0.006

Third tier

(50,200]

0.002

0.003

Fourth tier

> 200

0.001

0.002

Billing example

You purchase a pay-as-you-go ApsaraMQ for RocketMQ Standard Edition (Cluster High-availability Edition) instance whose computing specification is rmq.s2.2xlarge. The following table describes the number of created topics on the instance and the topic fees that you are charged.

Time

Free topic quota

Number of created topics

Paid topics

Unit price

Total fees

First hour

100

  • Created: 130

  • Deleted: 10

  • Remaining: 120

130 - 100 = 30

  • Ten topics fall into the first tier, and the unit price is 0.006 USD per topic-hour.

  • Twenty topics fall into the second tier, and the unit price is 0.003 USD per topic-hour.

10 × 0.006 + 20 × 0.003 = 0.12

Second hour

Created: 50

120 + 50 - 100 = 70

  • Ten topics fall into the first tier, and the unit price is 0.006 USD per topic-hour.

  • Forty topics fall into the second tier, and the unit price is 0.003 USD per topic-hour.

  • Twenty topics fall into the third tier, and the unit price is 0.002 USD per topic-hour.

10 × 0.006 + 40 × 0.003 + 20 × 0.002 = 0.22