Integration / Apache Kafka Interview questions
How do you configure MirrorMaker for cross-cluster replication?
MirrorMaker (MM2, built on the Kafka Connect framework) continuously replicates topics from a source Kafka cluster to a target cluster, typically for disaster recovery, geo-distribution, or feeding a separate analytics cluster without impacting the primary one.
# mm2.properties clusters=primary, backup primary.bootstrap.servers=primary-broker:9092 backup.bootstrap.servers=backup-broker:9092 primary->backup.enabled=true primary->backup.topics=orders,payments
connect-mirror-maker.sh mm2.properties
Because it's Connect-based, MM2 runs as source connectors (one direction of replication per configured flow) and inherits Connect's scaling, offset-tracking, and fault-tolerance behavior rather than being a bespoke standalone tool. Replicated topics on the target cluster are prefixed by default with the source cluster's alias (e.g. primary.orders) to avoid naming collisions and make the data's origin traceable; MM2 also replicates consumer group offsets via offset translation, which is what allows a consumer application to fail over from the primary cluster to the backup and resume roughly where it left off, rather than starting from scratch.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
