For the complete documentation index, see llms.txt. This page is also available as Markdown.

Use cases

Main scenarios K2K is built for.

When operating across more than one Kafka cluster, organizations need data, schemas, and consumer positions to stay aligned between the source Kafka cluster and the target Kafka cluster. K2K provides these capabilities, allowing a seamless transition between Kafka clusters whether the goal is resilience, migration, or feeding downstream environments.

This page describes the main scenarios K2K is built for. For step-by-step procedures, see Runbooks. For configuration, see Minimal Configuration and Configuration Reference.

Disaster recovery

When planning for disaster recovery, organizations require a standby cluster that holds a current copy of production data, the schemas those records depend on, and valid consumer positions on the target Kafka cluster before a failover occurs.

K2K replicates selected topics to the standby on an ongoing basis, keeps schemas available on a target Schema Registry, and translates consumer group offsets from the source Kafka cluster to the target Kafka cluster.

When operations initiate a failover, applications can switch to the standby cluster and resume without reprocessing from the beginning. End users are unaware of K2K; operators monitor replication lag and direct consumers to the target Kafka cluster when ready.

Cluster migration

When replacing a Kafka cluster (for example when moving cloud provider, region, or datacenter), organizations require the source Kafka cluster and the target Kafka cluster to stay in sync while applications are moved over gradually, with schemas and consumer positions carried across to the new environment.

K2K replicates selected topics from the old cluster to the new one while both remain in service. It translates consumer group positions as each application switches and replicates schemas to a target Schema Registry where needed.

Once all workloads run on the target Kafka cluster, operators stop K2K and decommission the source Kafka cluster.

Test, staging, and analytics environments

When feeding test, staging, or analytics clusters from production, organizations require only the relevant topics to be copied, not the entire cluster, so downstream workloads can run against realistic data without touching production.

K2K copies the subset defined in the pipeline, by topic name or by regex pattern (for example orders.*).

K2K does not copy topics outside the pipeline configuration.

Active/active and bidirectional replication

When both Kafka clusters must produce and consume data simultaneously, K2K can replicate in both directions without records cycling between clusters. Each direction runs as a separate pipeline with loop prevention enabled.

Last updated

Was this helpful?