Message Queue for Apache Kafka supports two storage engines: cloud storage and local storage. This topic compares the two storage engines to help you select the appropriate one.

Cloud storage and local storage

Item Cloud storage Local storage
Underlying algorithm Alibaba Cloud disk algorithm In-Sync Replicas (ISR) algorithm of native Apache Kafka
Requirements for instance versions None Message Queue for Apache Kafka instances of the Professional Edition with the open-source version 2.2.0
Replica mechanism Three replicas in distributed mode
  • Standard Edition: If you need 900 GB storage capacity, you must purchase 2,700 GB storage capacity.
  • Professional Edition: If you need 900 GB storage capacity, you can purchase only 900 GB storage capacity due to capacity optimization.
Three replicas in distributed mode

If you need 900 GB storage capacity, you must purchase 2,700 GB storage capacity.

Latency Low High
Partitions More Less
Fragmented storage No Yes
Compact Not supported Supported
Idempotence Not supported Supported
Transactions Not supported Supported
Message type Normal messages

A small number of messages become out of order during instance restart or downtime.

Partitionally ordered message

When the cluster is down, a new leader is automatically selected from ISR.

More information

  • For more information about the open-source versions of different instance editions, see Instance editions.
  • For more information about how to select a storage engine for a topic, see Step 3: Create resources.