Cassandra data model
Cassandra data model
Cluster
Cassandra database is distributed over several
machines that operate together. The outermost
container is known as the Cluster. For failure handling,
every node contains a replica, and in case of a failure,
the replica takes charge. Cassandra arranges the
nodes in a cluster, in a ring format, and assigns data to
them.
Keyspace: Keyspace is the outermost container for data in Cassandra. The basic attributes of a
Keyspace in Cassandra are −
• Users can access Cassandra through its nodes using Cassandra Query
Language (CQL). CQL treats the database (Keyspace) as a container of
tables. Programmers use cqlsh: a prompt to work with CQL or
separate application language drivers.
• Clients approach any of the nodes for their read-write operations.
That node (coordinator) plays a proxy between the client and the
nodes holding the data.
Write Operations
Read Operations