Integration / Apache Kafka Interview questions
What is a Kafka broker?
A broker is a single Kafka server — a process that stores partition data on disk, serves produce and fetch requests from clients, and (in KRaft mode) can also serve as one of the cluster's controller nodes if configured with that role. A Kafka cluster is simply a group of these brokers working together, typically anywhere from a handful to hundreds of nodes depending on scale.
kafka-broker-api-versions.sh --bootstrap-server localhost:9092
Each broker hosts some subset of the cluster's partitions — for a given partition, one broker acts as the leader (handling all reads and writes for it) while other brokers hosting replicas of that same partition act as followers, continuously fetching from the leader to stay in sync. This leader/follower split, repeated across every partition in the cluster and spread across all the brokers, is what balances both storage and request load across the whole cluster rather than concentrating it on one machine.
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...
