All Products
Search
Document Center

ApsaraMQ for Kafka:Pay-as-you-go

Last Updated:Aug 13, 2025

If you use the pay-as-you-go billing method, you are charged based on the number of resources that you use. In most cases, this billing method is suitable for testing or short-term scenarios in which traffic peaks are uncertain. This billing method allows you to use resources before you pay for them. Payments are settled on an hourly basis.

Billable items

Billable item

Description

Internet traffic (optional)

Internet traffic is divided into read traffic and write traffic. The maximum read traffic and the maximum write traffic that are supported by ApsaraMQ for Kafka are the same. When you purchase an ApsaraMQ for Kafka instance, compare the peak values of the read and write traffic of your business to determine the higher value. Then, select a traffic specification based on the higher value. You are charged for this billable item only if your instance is of the Internet- and virtual private cloud (VPC)-connected type.

Traffic specification (optional)

  • The traffic specification of a cluster in ApsaraMQ for Kafka indicates the computing and processing capabilities of the cluster. The capabilities are measured by the amount of traffic that is consumed by elastic network interfaces (ENIs). The ENI traffic is calculated based on the following formula: ENI traffic = Business traffic + Replication traffic in the cluster. Business traffic is the actual messaging traffic that is generated in business scenarios. Replication traffic in the cluster refers to the amount of traffic that is generated when data in your ApsaraMQ for Kafka cluster is backed up. By default, the cluster has three replicas after a backup is performed.

  • Business traffic is divided into read traffic and write traffic. The ratio of the maximum read traffic to the maximum write traffic is 1:1 for Professional Edition (High Write) instances and Standard Edition (High Write) instances, and 5:1 for Professional Edition (High Read) instances. When you purchase an instance, compare the peak values of read traffic and write traffic to determine the higher value. Then, select a traffic specification based on the higher value. To ensure business stability, we recommend that you purchase a quota that is approximately 130% of your peak read or write traffic. The excess traffic is used for buffering.

Disk capacity (required)

  • The minimum disk capacity varies based on the traffic specification. This helps ensure high performance and cost-effective storage.

  • ApsaraMQ for Kafka supports ultra disks and SSDs. We recommend that you use SSDs.

  • The prices of disks vary based on the disk type.

  • Exercise caution when you select a disk type. After an order is placed, you cannot change the disk type.

  • By default, data is stored in three replicas.

    • For a Standard Edition instance, if you purchase a disk that has a storage space of 300 GB, the actual storage space that you can use to store your business data is 100 GB. The remaining 200 GB is used to store backups.

    • For a Profession Edition instance, if data is stored in three replicas, the disk cost is approximately 60% lower than the disk cost of a self-managed Apache Kafka cluster. If you purchase a disk that has a storage space of 300 GB, the actual storage space that you can use to store your business data is 300 GB. An additional 600 GB of storage space is provided free of charge for you to store backups.

      Important

      Free storage space is available only for topics that use cloud storage as the storage engine. For information about cloud storage, see Comparison between storage engines.

Partitions (required)

  • A partition is the basic unit of a topic. Partitions are used to store messages.

  • The number of free partitions on instances varies based on the traffic specification.

  • The number of available topics on an ApsaraMQ for Kafka instance equals the total number of partitions on the instance. For example, if you purchase an instance that contains 50 partitions and select the alikafka.hw.2xlarge traffic specification that provides 1,000 free partitions for the instance, the total number of partitions on the instance is 1,050. The total number of partitions is calculated by using the following formula: Total number of partitions = Number of purchased partitions + Number of free partitions. The number of available topics equals the total number of partitions. Therefore, the number of available topics is also 1,050. The number of available groups is 2,100. The number of available groups is calculated based on the following formula: Number of available groups = Total number of partitions × 2.

Note

ApsaraMQ for Kafka no longer allows you to purchase instances based on the topic specification. If you purchased your existing instance based on the topic specification, the topic specification is converted into the partition specification. The number of partitions after conversion is based on the number of topics that you purchased.

Note
  • You are charged for the billable items that you use.

  • You can change the value of the Message Retention Period parameter to save disk space. The system deletes messages if the disk usage reaches the predetermined threshold or the retention period of messages reaches the specified value of the Message Retention Period parameter. The Message Retention Period parameter specifies the maximum period of time for which messages can be retained when disk space is sufficient. For more information, see Modify message configurations. If the disk usage reaches 85%, the disk capacity is insufficient. In this case, the system deletes the earliest stored messages to ensure service availability. By default, messages are retained for up to 72 hours. You can also select a period that ranges from 24 hours to 480 hours. For more information, see When are historical messages deleted from ApsaraMQ for Kafka?

  • The number of API calls is not a billable item.

Billing formulas

Billable items and their unit prices vary based on the instance type. For more information, see Billable items.

  • Internet- and VPC-connected instances: Instances of this type can be accessed from the Internet and VPCs.

    Total fees = (Unit price of Internet traffic + Price of the traffic specification + Unit price of disk capacity × Purchased disk capacity/100 + Price of a partition × Number of purchased partitions) × Number of hours

    Note

    If you purchased an Internet- and VPC-connected instance based on the topic specification, the total fees are calculated based on the following formula: Total fees = (Unit price of Internet traffic + Price of the traffic specification + Unit price of disk capacity × Purchased disk capacity/100 + Price of a topic × Number of additional topics) × Number of hours.

  • VPC-connected instances: Instances of this type can be accessed only from VPCs.

    Total fees = (Price of the traffic specification + Unit price of disk capacity × Purchased disk capacity/100 + Price of a partition × Number of purchased partitions) × Number of hours

    Note

    If you purchased a VPC-connected instance based on the topic specification, the total fees are calculated based on the following formula: Total fees = (Price of the traffic specification + Unit price of disk capacity × Purchased disk capacity/100 + Price of a topic × Number of additional topics) × Number of hours.

Settlement description

If you use the pay-as-you-go billing method, you are charged for the billable items, such as the traffic specification and disk capacity, that you specify when you create an instance.

  • You are charged on an hourly basis. A usage duration shorter than an hour is rounded up to an hour.

  • Fees are calculated each hour and bills are generated at intervals of 24 hours. Fees that are incurred on the previous day are deducted from your Alibaba Cloud account balance based on your bill generated on the current day.

After you purchase a pay-as-you-go ApsaraMQ for Kafka instance, the system allocates instance resources to you. Fees for a pay-as-you-go ApsaraMQ for Kafka instance are calculated based on the following formula: Total fees = Price of the instance × Service time. You are charged for a pay-as-you-go ApsaraMQ for Kafka instance even if you do not use the instance. If you have questions about your bill, you can view the billing details. For more information, see View billing details.

Billing

Note

The prices and regions that are described in the following table are only for reference. The actual prices on the buy page shall prevail.

Billing of Internet traffic

The billing of elastic IP addresses (EIPs) is related to the bandwidth of BGP (Multi-ISP) lines. The unit prices of EIPs vary based on the region. The calculation results are rounded to the nearest decimal with three decimal places.

Region

Unit price of bandwidth (USD per hour)

1 Mbit/s

2 Mbit/s

3 Mbit/s

4 Mbit/s

5 Mbit/s

6 Mbit/s and higher (n represents the bandwidth value)

All regions except for SAU (Riyadh - Partner Region)

0.01

0.02

0.03

0.04

0.05

0.05 + (n - 5) × 0.03

SAU (Riyadh - Partner Region)

0.012

0.024

0.036

0.048

0.06

0.06 + (n - 5) × 0.036

Billing of traffic specifications

The billing rules of traffic specifications vary based on the instance edition. Standard Edition (High Write), Professional Edition (High Write), and Professional Edition (High Read) instances support different traffic specifications. The maximum traffic processed by a cluster and the number of free topics vary based on the traffic specification. A higher traffic specification indicates a larger number of free topics. Therefore, higher fees are incurred. The unit prices of traffic specifications vary based on the region group to which your region belongs. For information about region groups, see Region groups.

For information about traffic specifications supported by each instance edition, see Instance editions.

Note

For information about traffic specifications supported by instances that are purchased based on the topic specification, see What are the number of free topics and partitions in the traffic specification of an instance that is purchased based on topic specifications?

Standard Edition (High Write)

Traffic specification

Maximum read traffic of ENIs (MB/s)

Maximum write traffic of ENIs (MB/s)

Number of free partitions

Unit price in region group 1 (USD per hour)

Unit price in region group 2 (USD per hour)

Unit price in region group 3 (USD per hour)

SAU (Riyadh - Partner Region)

(USD per hour)

alikafka.hw.2xlarge

3 × 20

3 × 20

1,000

0.335

0.470

0.420

0.564

alikafka.hw.3xlarge

3 × 30

3 × 30

1,000

0.475

0.650

0.590

0.780

alikafka.hw.6xlarge

3 × 60

3 × 60

1,000

0.655

0.880

0.790

1.056

alikafka.hw.9xlarge

3 × 90

3 × 90

1,000

0.800

1.050

0.930

1.260

alikafka.hw.12xlarge

3 × 120

3 × 120

1,000

0.960

1.250

1.100

1.500

Professional Edition (High Write)

Traffic specification

Maximum read traffic of ENIs (MB/s)

Maximum write traffic of ENIs (MB/s)

Number of free partitions

Unit price in region group 1 (USD per hour)

Unit price in region group 2 (USD per hour)

Unit price in region group 3 (USD per hour)

SAU (Riyadh - Partner Region)

(USD per hour)

alikafka.hw.2xlarge

3 × 20

3 × 20

1,000

0.80

1.17

1.06

1.404

alikafka.hw.3xlarge

3 × 30

3 × 30

1,000

0.99

1.45

1.31

1.740

alikafka.hw.6xlarge

3 × 60

3 × 60

1,000

1.34

1.980

1.77

2.376

alikafka.hw.9xlarge

3 × 90

3 × 90

1,000

1.59

2.37

2.11

2.844

alikafka.hw.12xlarge

3 × 120

3 × 120

1,000

1.88

2.82

2.50

3.384

alikafka.hw.16xlarge

3 × 160

3 × 160

2,000

2.09

3.16

2.78

3.792

alikafka.hw.20xlarge

3 × 200

3 × 200

2,000

3.25

4.87

4.32

5.844

alikafka.hw.25xlarge

3 × 250

3 × 250

2,000

3.67

5.51

4.88

6.612

alikafka.hw.30xlarge

3 × 300

3 × 300

2,000

4.00

6.03

5.31

7.236

alikafka.hw.60xlarge

3 × 600

3 × 600

2,000

4.25

6.62

5.64

7.944

alikafka.hw.80xlarge

3 × 800

3 × 800

2,000

4.41

7.00

5.85

8.400

alikafka.hw.100xlarge

3 × 1,000

3 × 1,000

3,000

4.56

7.39

6.04

8.868

alikafka.hw.120xlarge

3 × 1,200

3 × 1,200

3,000

4.69

7.71

6.21

9.252

alikafka.hw.150xlarge

3 × 1,500

3 × 1,500

3,000

4.94

8.30

6.54

9.960

alikafka.hw.180xlarge

3 × 1,800

3 × 1,800

3,000

5.16

8.84

6.83

10.608

alikafka.hw.200xlarge

3 × 2,000

3 × 2,000

3,000

5.34

9.29

7.05

11.148

Professional Edition (High Read)

Traffic specification

Maximum read traffic of ENIs (MB/s)

Maximum write traffic of ENIs (MB/s)

Number of free partitions

Unit price in region group 1 (USD per hour)

Unit price in region group 2 (USD per hour)

Unit price in region group 3 (USD per hour)

SAU (Riyadh - Partner Region)

(USD per hour)

alikafka.hr.2xlarge

50 + 2 × 10

10 + 2 × 10

1,000

0.80

1.17

1.06

1.404

alikafka.hr.3xlarge

75 + 2 × 15

15 + 2 × 15

1,000

0.99

1.45

1.31

1.740

alikafka.hr.6xlarge

150 + 2 × 30

30 + 2 × 30

1,000

1.34

1.98

1.77

2.376

alikafka.hr.9xlarge

180 + 2 × 45

45 + 2 × 45

1,000

1.59

2.37

2.11

2.844

alikafka.hr.12xlarge

240 + 2 × 60

60 + 2 × 60

1,000

1.88

2.82

2.50

3.384

alikafka.hr.16xlarge

240 + 2 × 80

80 + 2 × 80

2,000

2.09

3.160

2.780

3.792

alikafka.hr.20xlarge

300 + 2 × 100

100 + 2 × 100

2,000

3.25

4.87

4.32

5.844

alikafka.hr.25xlarge

375 + 2 × 125

125 + 2 × 125

2,000

3.67

5.51

4.88

6.612

alikafka.hr.30xlarge

450 + 2 × 150

150 + 2 × 150

2,000

4.00

6.03

5.31

7.236

alikafka.hr.60xlarge

900 + 2 × 300

300 + 2 × 300

2,000

4.25

6.62

5.64

7.944

alikafka.hr.80xlarge

1,200 + 2 × 400

400 + 2 × 400

2,000

4.41

7.00

5.85

8.400

alikafka.hr.100xlarge

1,500 + 2 × 500

500 + 2 × 500

3,000

4.56

7.39

6.04

8.868

alikafka.hr.120xlarge

1,800 + 2 × 600

600 + 2 × 600

3,000

4.69

7.71

6.21

9.252

alikafka.hr.150xlarge

2,250 + 2 × 750

750 + 2 × 750

3,000

4.94

8.30

6.54

9.960

alikafka.hr.180xlarge

2,700 + 2 × 900

900 + 2 × 900

3,000

5.16

8.84

6.83

10.608

alikafka.hr.200xlarge

3,000 + 2 × 1,000

1,000 + 2 × 1,000

3,000

5.34

9.29

7.05

11.148

Billing of disk capacity

The billing rules of disk capacity vary based on the disk type. The unit prices of disk capacity vary based on the region group to which your region belongs. If the disk capacity provided free of charge in the traffic specification does not meet your business requirements, you can purchase additional disk capacity by increasing the value of the Disk Capacity parameter on the buy page. For information about region groups, see Region groups.

Disk type

Disk size (GB)

Unit price in region group 1 (USD per hour)

Unit price in region group 2 (USD per hour)

Unit price in region group 3 (USD per hour)

SAU (Riyadh - Partner Region) (USD per hour)

Ultra disk

100

0.01

0.02

0.02

0.024

SSD

100

0.03

0.04

0.04

0.048

Note

The disk cost of a Professional Edition instance that stores data in three replicas is approximately 60% lower than the disk cost of a self-managed open source cluster.

Billing of partitions

  • If the number of free partitions that are provided in the traffic specification does not meet your business requirements, you can purchase additional partitions. For information about the number of partitions on different types of instances, see Instance partitions.

  • The price of each additional partition varies based on the region group. For information about region groups, see Region groups.

Billable item

Unit price in region group 1 (USD per partition-hour)

Unit price in region group 2 (USD per partition-hour)

Unit price in region group 3 (USD per partition-hour)

SAU (Riyadh - Partner Region) (USD per partition-hour)

Partitions

0.000444

0.000639

0.000583

0.000767

Region groups

Region group

Region name

Region group 1

China (Hangzhou)

China (Shanghai)

China (Qingdao)

China (Beijing)

China (Zhangjiakou)

China (Hohhot)

China (Ulanqab)

China (Shenzhen)

China (Heyuan)

China (Guangzhou)

China (Chengdu)

China (Fuzhou - Local Region) (Closing Down)

Region group 2

China (Hong Kong)

Singapore

Japan (Tokyo)

South Korea (Seoul)

US (Virginia)

US (Silicon Valley)

Germany (Frankfurt)

UK (London)

Region group 3

Malaysia (Kuala Lumpur)

Indonesia (Jakarta)

Philippines (Manila)

Thailand (Bangkok)

References