Migrate to AutoMQ Cloud with full Kafka compatibility. Adaptive elastic scaling, batch migration, and cost-efficient cloud-native infrastructure for reliable data synchronization.
AutoMQ is a next-generation Kafka distribution redesigned based on cloud-native principles and compatible with Apache Kafka®. This article explains the Kafka Linking feature provided by AutoMQ and how to use Kafka Linking to migrate business from Apache Kafka® or other Kafka distributions to AutoMQ.
AutoMQ Cloud provides the Kafka migration tool Kafka Linking, which supports migration from Apache Kafka® or other Kafka distributions to AutoMQ without application changes.The Kafka Linking migration tool has the following advantages:
Non-Stop Migration: Unlike MirrorMaker2, which requires client downtime for switching, Kafka Linking is equipped with a built-in traffic proxy component that ensures the switching process for Producers does not require downtime.
Byte-to-byte replication: Unlike MirrorMaker2, which changes offsets during replication, Kafka Linking preserves partition offsets when it replicates source data to the target. Applications such as Flink jobs that restore offsets from checkpoints, savepoints, or external stores must still verify that every saved offset is readable on the target. See Kafka Linking best practices for the validation procedure.
Synchronized Consumption Progress: Kafka Linking supports synchronized source cluster consumption progress, allowing consumers to resume consumption from the target cluster post-migration with consistent position information.
Elastic Scaling on Demand: Kafka Linking requires no separate deployment and scales with the AutoMQ cluster on demand, reducing operational complexity during migration.
High Kafka Compatibility: Kafka Linking supports most historical versions of Apache Kafka (version >=0.11) as well as other commercial editions, allowing transitions to AutoMQ.
A Kafka Link is a data synchronization and proxy task for a set of Topics from an external Apache Kafka cluster to an AutoMQ Kafka instance, including the configuration required for data synchronization, real-time operational status, and traffic proxy control.
The Source Cluster is an abstract configuration defined in Kafka Linking for the migration source cluster. The Source Cluster is described by AutoMQ’s console-provided Kafka integration, containing configuration information such as the source cluster’s access point, ACL rules, alias, etc.
The Sink Cluster is an abstract configuration defined in Kafka Linking for the migration target cluster. The Sink Cluster specifically refers to an AutoMQ instance (Kafka Linking supports only AutoMQ instances as Sink Clusters), containing configuration information such as the target cluster’s access point, ACL rules, alias, etc.
Mirror Topic is the basic unit used in Kafka Linking to synchronize and migrate a Topic from the source cluster to the target cluster. Each Mirror Topic corresponds to a specific Topic in the source cluster and serves as the unique representation of that Topic in the target cluster.
Source Topic is the expression of the Topic in the source cluster for Kafka Linking. In each Kafka Link, the Source Topic and Mirror Topic correspond one-to-one.
Kafka Linking supports copying consumption progress information from the source cluster’s Consumer Group and synchronizing it to the target cluster. Users can specify the Source Cluster’s Consumer Group and configure it to the Sink Cluster’s designated Consumer Group.
Unlike MirrorMaker2, which implements data synchronization based on Connectors, the Kafka Linking migration tool reconstructs two paths: Byte-to-Byte replication path and Producer proxy path:
Byte-to-Byte Replication Path: This is used for synchronizing data from the Source Cluster to the Sink Cluster, ensuring data integrity and position consistency.
Producer Proxy Path: Traditional MirrorMaker2 requires Producers to be completely shut down before switching to the target cluster to avoid data disorder caused by simultaneous writing to both clusters. AutoMQ Kafka Linking provides a Producer proxy path that supports traffic proxying back to the source cluster during the switching process and subsequent unified switching, enabling zero-downtime switching.
Kafka Linking’s data synchronization links can achieve the following effects:
Topic partition numbers are completely consistent.
Message full synchronization, with offsets exactly aligned with the source cluster.
Consumer offsets are synchronized; the specific partitions’ consumer offsets for specific Consumer Groups in the source cluster are fully synchronized to the target cluster, maintaining consistency.
To understand the background and functionality of Kafka Linking, it is recommended to follow this sequence:
Prerequisites sorting: Identify the characteristics of the source cluster and business relationships that need migration, plan the migration batches, and check prerequisite resources. Prerequisites▸
Review migration best practices: Create a runbook for each batch based on endpoints, client types, offset sources, and rollback requirements. Kafka Linking best practices▸
Execute the migration plan: After completing the prerequisite review, follow the migration plan step by step. Executing migration▸
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.