DataStax Academy FAQ

DataStax Academy migrated to a new learning management system (LMS) in July 2020. We are also moving to a new Cassandra Certification process so there are changes to exam bookings, voucher system and issuing of certificates.

Check out the Academy FAQ pages for answers to your questions:


question

nag9sri_139755 avatar image
nag9sri_139755 asked ·

Why is Cassandra a ring architecture?

As the question says , Why Cassandra chose ring architecture , is this to "identify" clear neighbors for each node ?

cassandra
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Russell Spitzer avatar image
Russell Spitzer answered ·

The nodes are not literally on a ring. The ring is a representation of the hashing function output. It is circular because ranges are allowed to span the max value point and carry around to the min value.

Every node claims sections of the ring as the key values that they will own. For more information look up information on tokens and vnodes. Actual node assignment and replica placement is only accomplished with additional data. If vnodes aren't used each node only would one a single continuous section but most deployments use vnodes now.

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.