Software Alternatives, Accelerators & Startups

Ehcache VS RocksDB

Compare Ehcache VS RocksDB and see what are their differences

Ehcache logo Ehcache

Java's most widely used cache.

RocksDB logo RocksDB

A persistent key-value store for fast storage environments
  • Ehcache Landing page
    Landing page //
    2021-08-26
  • RocksDB Landing page
    Landing page //
    2022-03-12

Ehcache videos

Terracotta Ehcache: simpler, faster, distributed by Anthony Dahanne

More videos:

  • Tutorial - 18 - What is Eh Cache or Second Level Cache & How to use with Spring MVC? #ehcache #cache #SpringMVC

RocksDB videos

How Online Backup works in MyRocks and RocksDB

More videos:

  • Review - RocksDB Meetup 2020 at Rockset
  • Review - TokuDB vs RocksDB

Category Popularity

0-100% (relative to Ehcache and RocksDB)
Databases
46 46%
54% 54
NoSQL Databases
50 50%
50% 50
Key-Value Database
52 52%
48% 48
Graph Databases
52 52%
48% 48

User comments

Share your experience with using Ehcache and RocksDB. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, RocksDB seems to be more popular. It has been mentiond 11 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Ehcache mentions (0)

We have not tracked any mentions of Ehcache yet. Tracking of Ehcache recommendations started around Mar 2021.

RocksDB mentions (11)

  • How to choose the right type of database
    RocksDB: A high-performance embedded database optimized for multi-core CPUs and fast storage like SSDs. Its use of a log-structured merge-tree (LSM tree) makes it suitable for applications requiring high throughput and efficient storage, such as streaming data processing. - Source: dev.to / 4 months ago
  • Fast persistent recoverable log and key-value store
    [RocksDB](https://rocksdb.org/) isn’t a distributed storage system, fwiw. It’s an embedded KV engine similar to LevelDB, LMDB, or really sqlite (though that’s full SQL, not just KV). - Source: Hacker News / 4 months ago
  • The Hallucinated Rows Incident
    To output the top 3 rocks, our engine has to first store all the rocks in some sorted way. To do this, we of course picked RocksDB, an embedded lexicographically sorted key-value store, which acts as the sorting operation's persistent state. In our RocksDB state, the diffs are keyed by the value of weight, and since RocksDB is sorted, our stored diffs are automatically sorted by their weight. - Source: dev.to / 7 months ago
  • In-memory vs. disk-based databases: Why do you need a larger than memory architecture?
    Memgraph uses RocksDB as a key-value store for extending the capabilities of the in-memory database. Not to go into too many details about RocksDB, but let’s just briefly mention that it is based on a data structure called Log-Structured Merge-Tree (LSMT) (instead of B-Trees, typically the default option in databases), which are saved on disk and because of the design come with a much smaller write amplification... - Source: dev.to / 10 months ago
  • Event streaming in .Net with Kafka
    Streamiz wrap a consumer, a producer, and execute the topology for each record consumed in the source topic. You can easily create stateless and stateful application. By default, each state store is a RocksDb state store persisted on disk. - Source: dev.to / over 1 year ago
View more

What are some alternatives?

When comparing Ehcache and RocksDB, you can also consider the following products

Redis - Redis is an open source in-memory data structure project implementing a distributed, in-memory key-value database with optional durability.

memcached - High-performance, distributed memory object caching system

Amazon DynamoDB - Amazon DynamoDB is a fully managed NoSQL database service offered by Amazon.

Aerospike - Aerospike is a high-performing NoSQL database supporting high transaction volumes with low latency.

Hazelcast - Clustering and highly scalable data distribution platform for Java

MapDB - MapDB provides Java Maps, Sets, Lists, Queues and other collections backed by off-heap or on-disk storage. It is a hybrid between java collection framework and embedded database engine. It is free and open-source under Apache license.