If an instance is billed based on 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 the traffic fluctuates during peak hours. You are charged based on the number of resources that you use. Payments are settled on an hourly basis.

Billable items

The following table describes the billable items of Message Queue for Apache Kafka instances that are billed based on the pay-as-you-go billing method.

Billable item Description
Internet traffic Internet traffic is divided into read traffic and write traffic. The maximum read traffic and the maximum write traffic that are supported by Message Queue for Apache Kafka are the same. When you purchase an instance, compare the peak value of read traffic with the peak value of write traffic to obtain the higher value. Then, select a bandwidth based on the higher value. You are charged for this billable item only for Internet- and VPC-connected instances.
Traffic specification
  • The traffic specification refers to the computing and processing capabilities of a cluster in Message Queue for Apache Kafka. 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 your business scenarios. Replication traffic in the cluster refers to the amount of traffic that is generated when the data in your Message Queue for Apache Kafka cluster is backed up. By default, the cluster has a total of 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 value of read traffic with the peak value of write traffic to obtain 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
  • The minimum disk capacity varies based on the traffic specification. This helps ensure high performance and cost-effective storage.
  • Message Queue for Apache Kafka supports ultra disks and SSDs. We recommend that you use SSDs.
  • The price of a disk varies based on the disk type.
  • Exercise caution when you select a disk type. The disk type cannot be changed after the order is placed.
  • By default, data is stored in three replicas.
    • For a Standard Edition instance, if you purchase a disk of 300 GB in size, 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 instance. If you purchase a disk of 300 GB in size, 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 for you free of charge to store backups.
      Notice Free storage space is available only for topics that use cloud storage as the storage engine. For more information about cloud storage, see Storage engine comparison.
Quota for the number of topics
Note If you create 1,000 or more partitions in a self-managed open source Apache Kafka instance, the system performance degrades. Message Queue for Apache Kafka allows you to create 10,000 partitions or more in an instance. For example, if a topic consists of 16 partitions, the performance bottleneck of a self-managed open source Apache Kafka instance is reached after you create approximately 70 topics. You can use Message Queue for Apache Kafka to create more topics without compromising performance. If you want more partitions, more topics are required and more underlying resources must be provided to support the topics. As a result, additional costs are required when you create more partitions.
  • The maximum number of topics or partitions varies based on your traffic specification.
  • Each time you purchase an additional topic, the quota for the number of partitions is increased by 16. For example, you purchase an instance that contains 50 topics, supports a maximum traffic rate of 20 MB/s, and provides 400 default partitions. After you purchase 10 additional topics for the instance, 160 additional partitions are available for the instance. The quota for the number of partitions is increased to 560.
  • The number of topics that you can create in a Professional Edition instance is twice the number of topics that you purchase. For example, if you purchase a Professional Edition instance that provides 50 topics, you can create 100 topics in the instance.
Note
  • You are charged for the billable items that you use.
  • You can adjust the value of the Retain Messages For parameter to save disk space. The system deletes messages when the disk usage reaches the predetermined threshold or the retention period of the messages reaches the specified value of the Retain Messages For parameter. The Retain Messages For parameter specifies the maximum period that messages can be retained when the disk capacity is sufficient. When the disk usage reaches 85%, the system determines that the disk capacity is insufficient and deletes messages in the order in which the messages are stored to ensure service availability. The earliest stored message is the first message to be deleted. By default, messages are retained for a maximum of 72 hours. You can also select a period from 24 hours to 168 hours. For more information, see When are historical messages deleted from Message Queue for Apache 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 about the billable items, see Billable items.
  • Internet- and VPC-connected instances: Instances of this type can be accessed over the Internet and from VPCs.

    Total fee = (Unit price of Internet traffic + Unit price of a traffic specification + Unit price of disk capacity × Purchased disk capacity/100 + Price of a single topic × Number of additional topics) × Number of hours

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

    Total fee = (Unit price of a traffic specification + Unit price of disk capacity × Purchased disk capacity/100 + Price of a single topic × Number of additional topics) × Number of hours

Billing description

For 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.
  • Payments are settled on an hourly basis. The usage duration shorter than an hour is calculated as an hour.
  • Fees are calculated each hour and bills are generated at intervals of 24 hours. The fee that is incurred on the previous day is deducted from your Alibaba Cloud account balance based on your bill generated on the current day.

After you purchase a pay-as-you-go Message Queue for Apache Kafka instance, the system allocates resources to your instance. A pay-as-you-go Message Queue for Apache Kafka instance is billed based on the following formula: Total fee = Unit price of the instance × Service time. You are charged for the instance even if you do not use the instance. If you have questions about the billing, you can view the billing details. For more information, see View billing and usage details.

Billing details

Note If the price information provided in the following tables is different from the price information provided on the buy page in the console, the information on the buy page takes precedence.
  • Billing for Internet traffic
    The billing of elastic IP addresses (EIPs) is related to the bandwidth of BGP (Multi-ISP) lines. The unit price of the bandwidth for EIPs of the BGP (Multi-ISP) type varies based on the region.
    Table 1. Billing rules for Internet traffic
    Region Unit price of bandwidth (USD per Mbit/s-day)
    1 Mbps 2 Mbps 3 Mbps 4 Mbps 5 Mbps 6 Mbit/s and higher (n indicates the bandwidth value)
    China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), Malaysia (Kuala Lumpur), China (Hong Kong), Singapore (Singapore), Indonesia (Jakarta), US (Virginia), US (Silicon Valley), Germany (Frankfurt), UK (London), and Philippines (Manila) 0.14 0.28 0.43 0.57 0.71 0.71+(n-5)× 0.5
    China (Qingdao) 0.11 0.21 0.32 0.43 0.53 0.53+(n-5)× 0.46
    Japan (Tokyo) 0.17 0.34 0.51 0.68 0.85 0.85+(n-5)× 0.57
  • Billing for traffic specifications

    The billing rules for traffic specifications vary based on your 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. As a result, a higher fee is incurred. The unit price of a traffic specification varies based on the region group to which your region belongs. For more information about region groups, see Region groups.

    For more information about the specifications of each instance edition, see Instance editions.

    • For information about the billing rules for traffic specifications of Standard Edition (High Write) instances, see Table 2.
    • For information about the billing rules for traffic specifications of Professional Edition (High Write) instances, see Table 3.
    • For information about the billing rules for traffic specifications of Professional Edition (High Read) instances, see Table 4.
    Table 2. Billing rules for traffic specifications of Standard Edition (High Write) instances
    Traffic specification Maximum read traffic of ENIs (MB/s) Maximum write traffic of ENIs (MB/s) Number of free topics Number of free partitions Unit price in region group 1 (USD/hour) Unit price in region group 2 (USD/hour) Unit price in region group 3 (USD/hour)
    alikafka.hw.2xlarge 3×20 3×20 50 400 0.335 0.470 0.420
    alikafka.hw.3xlarge 3×30 3×30 50 500 0.475 0.650 0.590
    alikafka.hw.6xlarge 3×60 3×60 80 600 0.655 0.880 0.790
    alikafka.hw.9xlarge 3×90 3×90 100 800 0.800 1.050 0.930
    alikafka.hw.12xlarge 3×120 3×120 150 900 0.960 1.250 1.100
    Table 3. Billing rules for traffic specifications of Professional Edition (High Write) instances
    Traffic specification Maximum read traffic of ENIs (MB/s) Maximum write traffic of ENIs (MB/s) Number of free topics Number of free partitions Unit price in region group 1 (USD/hour) Unit price in region group 2 (USD/hour) Unit price in region group 3 (USD/hour)
    alikafka.hw.2xlarge 3×20 3×20 50 1100 0.80 1.17 1.06
    alikafka.hw.3xlarge 3×30 3×30 50 1200 0.99 1.45 1.31
    alikafka.hw.6xlarge 3×60 3×60 80 1400 1.34 1.980 1.77
    alikafka.hw.9xlarge 3×90 3×90 100 1600 1.59 2.37 2.11
    alikafka.hw.12xlarge 3×120 3×120 150 1800 1.88 2.82 2.50
    alikafka.hw.16xlarge 3×160 3×160 180 2000 2.09 3.16 2.78
    alikafka.hw.20xlarge 3×200 3×200 200 2200 3.25 4.87 4.32
    alikafka.hw.25xlarge 3×250 3×250 250 2500 3.67 5.51 4.88
    alikafka.hw.30xlarge 3×300 3×300 300 3000 4.00 6.03 5.31
    alikafka.hw.60xlarge 3×600 3×600 450 4500 4.25 6.62 5.64
    alikafka.hw.80xlarge 3×800 3×800 500 5000 4.41 7.00 5.85
    alikafka.hw.100xlarge 3×1000 3×1000 600 6000 4.56 7.39 6.04
    alikafka.hw.120xlarge 3×1200 3×1200 700 7000 4.69 7.71 6.21
    alikafka.hw.150xlarge 3×1500 3×1500 800 8000 4.94 8.30 6.54
    alikafka.hw.180xlarge 3×1800 3×1800 900 9000 5.16 8.84 6.83
    alikafka.hw.200xlarge 3×2000 3×2000 1000 10000 5.34 9.29 7.05
    Table 4. Billing rules for traffic specifications of Professional Edition (High Read) instances
    Traffic specification Maximum read traffic of ENIs (MB/s) Maximum write traffic of ENIs (MB/s) Number of free topics Number of free partitions Unit price in region group 1 (USD/hour) Unit price in region group 2 (USD/hour) Unit price in region group 3 (USD/hour)
    alikafka.hw.2xlarge 50+2×10 10+2×10 50 1100 0.80 1.17 1.06
    alikafka.hw.3xlarge 75+2×15 15+2×15 50 1200 0.99 1.45 1.31
    alikafka.hw.6xlarge 150+2×30 30+2×30 80 1400 1.34 1.98 1.77
    alikafka.hw.9xlarge 180+2×45 45+2×45 100 1600 1.59 2.37 2.11
    alikafka.hw.12xlarge 240+2×60 60+2×60 150 1800 1.88 2.82 2.50
    alikafka.hw.16xlarge 240+2×80 80+2×80 180 2000 2.09 3.160 2.780
    alikafka.hw.20xlarge 300+2×100 100+2×100 200 2200 3.25 4.87 4.32
    alikafka.hw.25xlarge 375+2×125 125+2×125 250 2500 3.67 5.51 4.88
    alikafka.hw.30xlarge 450+2×150 150+2×150 300 3000 4.00 6.03 5.31
    alikafka.hw.60xlarge 900+2×300 300+2×300 450 4500 4.25 6.62 5.64
    alikafka.hw.80xlarge 1200+2×400 400+2×400 500 5000 4.41 7.00 5.85
    alikafka.hw.100xlarge 1500+2×500 500+2×500 600 6000 4.56 7.39 6.04
    alikafka.hw.120xlarge 1800+2×600 600+2×600 700 7000 4.69 7.71 6.21
    alikafka.hw.150xlarge 2250+2×750 750+2×750 800 8000 4.94 8.30 6.54
    alikafka.hw.180xlarge 2700+2×900 900+2×900 900 9000 5.16 8.84 6.83
    alikafka.hw.200xlarge 3000+2×1000 1000+2×1000 1000 10000 5.34 9.29 7.05
  • Billing for disk capacity

    The billing rules for disk capacity vary based on the disk type. The unit price of disk capacity varies based on the region group to which your region belongs. If the free disk capacity provided in the traffic specification does not meet your business requirements, you can purchase additional disk capacity by adjusting the value of the Disk Capacity parameter on the buy page to a larger value.

    Disk type Disk size (GB) Unit price in region group 1 (USD/hour) Unit price in region group 2 (USD/hour) Unit price in region group 3 (USD/hour)
    Ultra disk 100 0.01 0.02 0.02
    SSD 100 0.03 0.04 0.04
    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 instance.
    • The minimum disk capacity is used to avoid issues such as rollback failures. Rollback failures occur when messages are not frequently deleted. If you want to reduce the minimum disk capacity in specific scenarios, submit a ticket to contact technical support.
  • Billing for additional topics

    If the number of free topics that are provided in the traffic specification does not meet your business requirements, you can purchase more topics by adjusting the value of the Topics parameter on the buy page to a larger value. Each time you purchase an additional topic, the quota for the number of partitions is increased by 16. If the specified number of topics reaches the upper limit that is allowed by the current traffic specification, we recommend that you select a higher traffic specification because a higher traffic specification corresponds to more topics. This helps reduce your costs. The unit price of each additional topic varies based on the region group.

    Billable item Number of topics Unit price in region group 1 (USD/hour) Unit price in region group 2 (USD/hour) Unit price in region group 3 (USD/hour)
    Topic 1 0.02 0.02 0.02
    Note The default number of topics indicates the minimum number of topics that are supported for an instance. The system still allocates resources to the instance based on the minimum number of topics even if you specify a smaller number of topics. In this case, your costs are not reduced.
  • Table 5.
    Region group Region
    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)
    Region group 2 China (Hong Kong)
    Singapore (Singapore)
    Japan (Tokyo)
    US (Virginia)
    US (Silicon Valley)
    Germany (Frankfurt)
    UK (London)
    Region group 3 Malaysia (Kuala Lumpur)
    India (Mumbai)
    Indonesia (Jakarta)
    Philippines (Manila)