Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

gmldba_107428 avatar image
gmldba_107428 asked ·

Can Cassandra be used as a cache database?

Can we use cassandra as we use Redis or memcached?

cassandra
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Cedrick Lunven avatar image
Cedrick Lunven answered ·

Absolutely, YES. More nuggets promoting Cassandra:

  • You can achieve very fast read and write with Cassandra.
  • Data is stored in TABLES meaning you can easily defined your cache key as a column
  • It already provide a TTL mechanism for rows
  • Even if distributed on multiple server if you provide the keycache and a correct data model (keycache = partition key) you directly access the correct node
Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered ·

@gmldba_107428 The quick answer is yes. However, you will need to provide more info for anyone to be able to make any meaningful recommendation.

Given the right data model and correctly-sized cluster among other things, C* can be used as a caching mechanism. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.