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

Features

K2K features enabled per pipeline.

K2K features are enabled per pipeline. Each one addresses a specific requirement when replicating between clusters.

For configuration steps and keys, see Configuration reference. For architecture, see Architecture.

For step-by-step operational procedures, see Runbooks.

Key architectural features

  • Cloud-native deployment: K2K is distributed as a lightweight Docker container with first-class Kubernetes support and an official Helm chart.

  • Horizontal scalability: Run multiple K2K instances in parallel; they automatically coordinate to distribute the replication workload.

  • Self-contained and frameworkless: Unlike Kafka Connect-based solutions, K2K is a standalone application with a smaller resource footprint and simpler operational model.

  • Declarative configuration: All aspects of a replication pipeline are defined in a single YAML configuration file, managed as code and integrated into CI/CD workflows.

Exactly once delivery

For pipelines where the target Kafka cluster must be a faithful copy of the source Kafka cluster, exactly once delivery guarantees that each record appears on the target Kafka cluster once and in the same order. Downstream consumers can treat the target Kafka cluster as equivalent to the source Kafka cluster without deduplicating.

Offset mapping

Consumer offsets on one cluster have no meaning on another. Offset mapping keeps group positions on the target Kafka cluster aligned with the source Kafka cluster, so applications can fail over or complete a migration without starting over.

Bidirectional replication

Some environments need data flowing in both directions. Bidirectional replication keeps two clusters in sync without records cycling between them, as in active/active setups where both Kafka clusters produce and consume.

Horizontal scaling

As data volume grows, replication may need more capacity than a single instance can provide. K2K can run multiple replicator or offset mapper instances that share the workload, increasing throughput to match demand.

Record tracing

Every replicated record can carry a link back to its origin on the source Kafka cluster (topic, partition, and offset). Operators use this to debug issues, correlate data across clusters, and trace lineage.

Topic creation

K2K can provision the topics it needs on the target Kafka cluster before replication begins, with the expected partition count and configuration. This reduces manual setup when bringing up a new cluster.

Schema migration

Records that depend on Schema Registry need their schemas on the target Kafka cluster as well. Schema migration ensures the subjects applications rely on are available on the target Kafka cluster, so replicated data can be consumed immediately.

Cross-cluster replication

The source Kafka cluster and target Kafka cluster do not need to run on the same platform or version. K2K replicates between on premise Kafka, managed cloud offerings, and mixed environments.

Configurability and tuning

Pipelines expose the settings operators need to match security policies, client behavior, and throughput requirements on each cluster. K2K defaults should cover most use cases; each configuration reference guide includes an Advanced section for environment-specific tuning.

Metrics and visibility

K2K exports replication throughput, lag, partition assignment, and JVM metrics through Kafka (with Lenses HQ), OTLP, and Prometheus exporters.

Operators use these metrics to monitor pipeline health, spot bottlenecks, and alert on replication issues before they affect failover or migration timelines.

Admin UI and CLI

k2k-tool provides a UI and CLI to inspect replication state and adjust consumer offsets. Operators reach for it during failover, migration cutover, or when investigating lag, without changing the pipeline configuration.

See Web UI and CLI.

Last updated

Was this helpful?