Cross-datacenter replication with Kafka
📖 Scenario: You work for a company that has two data centers in different cities. They want to keep data synchronized between these centers using Kafka. This helps keep data safe and available even if one center has problems.
🎯 Goal: You will set up a simple Kafka topic and configure cross-datacenter replication so messages sent in one data center appear in the other.
📋 What You'll Learn
Create a Kafka topic named
orders with replication factor 2Set up a variable
source_cluster with the source Kafka cluster addressWrite a command to start MirrorMaker to replicate
orders from source_clusterPrint the MirrorMaker command to verify the setup
💡 Why This Matters
🌍 Real World
Cross-datacenter replication keeps data safe and available by copying Kafka topics between data centers automatically.
💼 Career
Kafka administrators and DevOps engineers use these skills to ensure reliable data replication and disaster recovery.
Progress0 / 4 steps