Integration / Apache Kafka Interview questions
How does Kafka's KRaft controller quorum manage cluster metadata?
A small set of dedicated controller nodes (an odd number, commonly 3 or 5, for clean majority voting) forms a Raft consensus group that maintains the cluster's metadata — topic configs, partition assignments, current leaders, ACLs — as a replicated, append-only log, rather than each broker independently tracking its own view.
process.roles=controller node.id=1 controller.quorum.voters=1@host1:9093,2@host2:9093,3@host3:9093
One controller in the quorum is elected the active controller and is the only one that processes metadata changes at a time; the others replicate its log and stand ready to take over if it fails. Brokers (which may or may not also serve as controllers, depending on cluster size) subscribe to this metadata log and apply changes locally, which is how every broker in the cluster stays in agreement about partition leadership and topic configuration without a central external lookup on every request. This design is what let Kafka 4.0 remove the external coordination system entirely — metadata consensus is now handled natively, inside Kafka's own replicated log mechanism.
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...
