Book Image

Cassandra Design Patterns - Second Edition

By : Rajanarayanan Thottuvaikkatumana
Book Image

Cassandra Design Patterns - Second Edition

By: Rajanarayanan Thottuvaikkatumana

Overview of this book

If you are new to Cassandra but well-versed in RDBMS modeling and design, then it is natural to model data in the same way in Cassandra, resulting in poorly performing applications and losing the real purpose of Cassandra. If you want to learn to make the most of Cassandra, this book is for you. This book starts with strategies to integrate Cassandra with other legacy data stores and progresses to the ways in which a migration from RDBMS to Cassandra can be accomplished. The journey continues with ideas to migrate data from cache solutions to Cassandra. With this, the stage is set and the book moves on to some of the most commonly seen problems in applications when dealing with consistency, availability, and partition tolerance guarantees. Cassandra is exceptionally good at dealing with temporal data and patterns such as the time-series pattern and log pattern, which are covered next. Many NoSQL data stores fail miserably when a huge amount of data is read for analytical purposes, but Cassandra is different in this regard. Keeping analytical needs in mind, you’ll walk through different and interesting design patterns. No theoretical discussions are complete without a good set of use cases to which the knowledge gained can be applied, so the book concludes with a set of use cases you can apply the patterns you’ve learned.
Table of Contents (15 chapters)

A brief overview


An oversimplified version of a fictitious social network application is taken to apply the design patterns discussed in this book. In this application, only some use cases relevant for placing the design patterns have been discussed.

The main application functionality revolves around the users signed-up in this application. Users have connections to other users in the application. Users can post short messages and their connections can like them if they want. The messages cannot be edited or deleted once posted. When a user signs in to the application, the first page displayed is the home page containing message posts from the signed-in user's connections, displayed in reverse chronological order along with his/her own posts. Every user has a personal wall page that displays only the message posts from the signed-in user in reverse chronological order, which is private to the individual user, and with appropriate privacy settings, the connections of the signed-in user can...