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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.