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

Cache to NoSQL pattern

Cache serves data much faster than that being served from other data stores. But if the caching solution in use is giving data integrity problems, it is better to migrate to NoSQL data stores, such as Cassandra. Is Cassandra faster than in-memory caching solutions? The obvious answer is, "No". But it is not as bad as many think. Cassandra can be configured to serve faster reads, and the bonus comes in the form of high data integrity with strong replication capabilities. The Cassandra read path starts with the checking in of the bloom filter. It is a probabilistic method of seeing whether the requested data is present in a given SSTable or not, before getting into the I/O operations. If the bloom filter gives a favorable nod, the next step is to check in the partition key cache. If the key is found, the row is returned. If the key is not found, the SSTables are read, and when data is available, it is merged, sorted, and returned. There are ways to cache an...

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