Performance
How K2K achieves throughput by default, how it compares under cross-region load, and how to scale out.
K2K is built on standard Kafka clients: a consumer on the source Kafka cluster and a producer on the target Kafka cluster. That model keeps the replication path short and predictable, so throughput is strong with default settings for most pipelines. For how those clients fit into the applications, see Architecture.
Good by default
Replication is consume-from-source, produce-to-target. K2K does not sit inside Kafka Connect or introduce an intermediate framework between the clusters. Defaults are chosen so a typical pipeline can run without client retuning; when you do need more throughput or lower latency, pass standard consumer and producer properties through the pipeline and adjust pipeline concurrency — see Replication performance tuning.
Cross-region comparison with MirrorMaker 2
In cross-region replication tests, K2K performed comparably to MirrorMaker 2 (MM2): it used less CPU and achieved higher throughput under the same workload.
Those results depend on the consumer and producer settings in use. Tailoring client properties for a specific application or network path can change the relative picture for either tool. Treat the comparison as a starting point, not a guarantee for every deployment. For environment-specific tuning, see Replication performance tuning.
Scale out with more containers
When a single instance cannot keep up with source production, run more K2K containers (or pods) with the same pipeline. Kafka assigns partitions across instances in the consumer group, so capacity grows with the number of useful replicas up to the partition limit of the subscribed topics.
See Horizontal scaling for how partition assignment caps parallelism, and how the offset mapper scales separately.
Last updated
Was this helpful?

