Skip to main content
InterviewHubPRO
Section Overview
Q40

Question 40 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

80%
Apache Kafka Streaming (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Kafka MirrorMaker 2 (MM2) Architecture: Active-Active vs Active-Passive geo-replication and offset translation.

senior LevelSystem DesignApache KafkaMicroservices

In Simple Words: MirrorMaker 2 leverages the Kafka Connect framework to replicate topics between distinct physical data centers or cloud regions:

  • Active-Passive (DR): Replicates all topics from Region A to Region B. Consumers in Region B remain idle until primary region failover.
  • Active-Active: Producers in both US-East and EU-Central write locally. MM2 synchronizes topics with namespace prefixes (us-east.orders -> EU cluster, eu-central.orders -> US cluster) to prevent infinite circular replication loops.
  • Checkpoint & Offset Translation: Emits consumer group offset checkpoints, allowing failed-over consumers in Region B to resume reading from the exact matching logical offset without duplicate processing.