Data modeling example

The music service example shows the how to use compound keys, clustering columns, and collections to model Cassandra data.

Cassandra's data model is a partitioned row store with tunable consistency. Rows are organized into tables; the first component of a table's primary key is the partition key; within a partition, rows are clustered by the remaining columns of the key. Other columns can be indexed separately from the primary key. Tables can be created, dropped, and altered at runtime without blocking updates and queries.

The example of a music service shows the how to use compound keys, clustering columns, and collections to model Cassandra data.

Note: DataStax Academy provides a course in Apache Cassandra™ data modeling. This course presents techniques using the Chebotko method for translating a real-world domain model into a running Cassandra schema.