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)

Summary


In this chapter, various design patterns related to applications with the needs of fast writes, fast reads, moderate writes, and moderate reads were discussed. All these design patterns revolved around using the tunable consistency parameters of Cassandra. Whether it is for write or read, if the consistency levels are set high, the availability levels will be low, and vice versa. So, by making use of the consistency level knob, the Cassandra data store can be used for various types of writing and reading use cases.

In any application, usage of data that varies over time, also called temporal data, is very important. Temporal data is needed wherever there is a need to maintain chronology. There are many applications in which there is a huge need for storage, retrieval, and processing of data that is tied to time. The next chapter will discuss some of the use cases with temporal data, and how Cassandra is well-made for such purposes.