Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cassandra Design Patterns

You're reading from   Cassandra Design Patterns Build real-world, industry-strength data storage solutions with time-tested design methodologies using Cassandra

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher
ISBN-13 9781785285707
Length 168 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Rajanarayanan Thottuvaikkatumana Rajanarayanan Thottuvaikkatumana
Author Profile Icon Rajanarayanan Thottuvaikkatumana
Rajanarayanan Thottuvaikkatumana
Arrow right icon
View More author details
Toc

Write-heavy pattern


In an IoT application with Cassandra as the data store, if the inflow of the data is very high, the write consistency levels should not be set high. Consistency levels of ANY, LOCAL_ONE, and ONE are ideal. The data comes in with a high velocity, and the data store should work like a sink. In this situation, if the consistency levels are set high, then for each write, the clients have to wait until the write is completed successfully on the required number of nodes as per the consistency level setting. The complexity increases when there are Cassandra clusters spread across multiple data centers in a network operations perspective. When the clients wait for the write to complete because of high consistency level settings, the availability will be lesser, and the efficiency to complete the writes will also become lesser. This, in turn, increases the latency, and the overall application performance will be affected. It is also ideal to avoid secondary indexes in the Cassandra...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime