Cloud Technology

What is the best strategy for Kafka disaster recovery across multiple cloud regions?

MI Asked by Michael Thompson · 20-05-2024
0 upvotes 15,407 views 0 comments
The question

My organization requires a 99.99% uptime for our Kafka infrastructure. How should we set up MirrorMaker 2 or Confluent Cluster Linking to ensure that if an entire AWS or Azure region goes down, our producers and consumers can failover to a secondary region with minimal data loss (RPO/RTO)? 

3 answers

0
DO
Answered on 22-05-2024

For multi-region DR, MirrorMaker 2 (MM2) is the standard open-source tool. It uses the Connect framework to replicate topics, configurations, and ACLs. However, for a 99.99% SLA, you should look at "Active-Passive" or "Active-Active" setups. Cluster Linking is often preferred in Confluent environments because it replicates the exact offsets, which simplifies consumer failover significantly. Without offset preservation, your consumers might reprocess a lot of data upon failover. Always ensure your "acks=all" setting is enabled on producers to guarantee that data is durable before the replication occurs. 

0
J
Answered on 24-05-2024

Have you calculated the potential cost of cross-region data transfer fees, as these can become quite expensive when replicating high-throughput topics? 

T 26-05-2024

Joseph makes a great point. To save on costs, we only replicate "critical" topics for DR. Using compression like Zstd can also help reduce the bandwidth needed for cross-region replication in the cloud.

0
NA
Answered on 26-05-2024

We use MirrorMaker 2 for our cross-cloud replication and it works well, though the initial setup of the heartbeat and checkpoint topics can be tricky. 

MI 28-05-2024

I agree, Nancy. Once the checkpointing is tuned, the RPO is usually just a few seconds, which fits most enterprise DR requirements perfectly.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session