Skip to main content
InterviewHubPRO
Section Overview
Q23

Question 23 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

46%
Apache Kafka Streaming (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

What is Kafka MirrorMaker 2 (MM2), and how does it support Active-Passive vs. Active-Active Disaster Recovery?

senior LevelSystem DesignApache KafkaMicroservices

In Simple Words: MirrorMaker 2 (MM2) is a Kafka Connect-based replication engine that synchronizes topics, topic configurations, and consumer group offsets between separate Kafka clusters across cloud regions.

  • Active-Passive DR:
    • Region A (Primary) handles 100% of production traffic. MM2 continuously replicates to Region B (Standby).
    • On Region A outage, DNS flips to Region B, and consumers resume from translated offsets.
  • Active-Active DR:
    • Both Region A and Region B accept local producer writes.
    • MM2 uses topic namespacing (e.g., us-east.orders and eu-west.orders) to prevent catastrophic infinite circular replication loops.