Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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

Read-write balanced pattern

In an IoT application with Cassandra as the data store, if the amount of write and the amount of read is balanced, then it is a tricky situation. It is difficult to have high availability for write as well as read. So, the best way to handle the situation is to go with the formula (W + R) > N. In other words, the sum of the number of nodes written and the number of nodes read is greater than the replication factor. It is also common to have two different but replicated clusters of Cassandra nodes, and in that, one is optimized for fast reads and the other for fast writes. But this has to be done with caution and the main reason is because once the data is written into one cluster, how fast that should be available for read from the other cluster. It is purely a business-rule-based requirement and there is no hard-and-fast rule that can be applied.

Motivations/solutions

Many of the financial transactions are highly read-write balanced patterns. This is commonly...

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 $19.99/month. Cancel anytime
Banner background image