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 ...

Get Cassandra Design Patterns - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.