Database / Apache Cassandra Intermediate and Advanced interview questions
What is the role of a coordinator node in Cassandra?
Any node in a Cassandra cluster can act as a coordinator for a given client request — there is no dedicated coordinator node or single point of entry, unlike a master node in other systems.
- It receives the client's query and identifies, using the token ring and the partitioner, which nodes actually own the requested partition.
- For writes, it forwards the mutation to all owning replicas and waits for the number of acknowledgements required by the consistency level.
- For reads, it queries enough replicas to satisfy the consistency level, merges the responses, and may trigger a read repair.
- It also applies the retry policy, timeout handling, and (in multi-datacenter setups) routes requests across datacenters as needed.
Because every node can be a coordinator, clients typically connect to any node in the cluster, and drivers use a token-aware load balancing policy so the node contacted is often already a replica for the data, avoiding an unnecessary network hop.
The coordinator itself does not need to own the data being requested — its job is purely request routing and response aggregation for that one query.
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...
