LZ4 VS RocksDB

Compare LZ4 vs RocksDB and see what are their differences.

LZ4

Extremely Fast Compression algorithm (by lz4)

RocksDB

A library that provides an embeddable, persistent key-value store for fast storage. (by facebook)
Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • SaaSHub - Software Alternatives and Reviews
LZ4 RocksDB
10 18
7,123 22,608
3.3% 1.9%
7.8 9.9
4 days ago 2 days ago
C C++
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

LZ4

Posts with mentions or reviews of LZ4. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-10.

RocksDB

Posts with mentions or reviews of RocksDB. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-22.
  • RocksDB – Embeddable library for persistent key-value store with fast storage
    1 project | news.ycombinator.com | 24 May 2022
  • In MongoDB you can have duplicate items even if you have unique index
    2 projects | reddit.com/r/programming | 22 May 2022
    But yeah, Facebook isn’t running on only MySQL, though they effectively built a graph database engine for it
  • Ask HN: Have you used SQLite as a primary database?
    19 projects | news.ycombinator.com | 25 Apr 2022
  • Ask HN: What are the best key-value self-hosted storage engines?
    5 projects | news.ycombinator.com | 31 Mar 2022
  • rocksdb
    1 project | reddit.com/r/Database | 23 Mar 2022
  • How I install RocksDB
    1 project | dev.to | 14 Mar 2022
    #!/bin/bash wget https://github.com/facebook/rocksdb/archive/refs/tags/v6.15.5.tar.gz -O - \ | gzip -d \ | tar -xf - \ && pushd rocksdb-6.15.5 \ && cmake -DWITH_SNAPPY=YES -DCMAKE_INSTALL_PREFIX=$MTDIR . \ && DEBUG_LEVEL=0 PREFIX=$MTDIR make -j $(nproc) \ && DEBUG_LEVEL=0 PREFIX=$MTDIR make install \ && popd
  • Spring Kafka Streams playground with Kotlin - I
    3 projects | dev.to | 9 Feb 2022
    We will then create a GlobalKTable with a materialize view for the leverage-prices so we can use it to join with incoming quotes and expose the most up to date leverage for a stock taking advantage of the local default materialized state store Rocksdb that is created for us automatically by Kafka Streams.
  • Distributed SQL Essentials: Sharding and Partitioning in YugabyteDB
    1 project | dev.to | 21 Nov 2021
    The SST files store the key-value pairs for tables and indexes. Sharding is the right term here because each tablet is a database (based on RocksDB), with its own protection. This looks like the sharded databases we described above, except that they are not SQL databases but key-value document stores. They have all the required features for a reliable datastore, with transactions and strong consistency. However, they don’t have the burden of managing them as multiple databases because the SQL layer is above. Joins and secondary indexes are not processed at this level because this prevents cross-shard transactions.
  • Hello guys , needed help for building a key-value data store
    1 project | reddit.com/r/Database | 9 Oct 2021
    - RocksDB - kv store that uses LSM tree;
  • We built an open-source SQL DB for Intel SGX enclaves
    3 projects | reddit.com/r/cybersecurity | 7 Aug 2021
    Hi everyone! Our team just released EdgelessDB, an open-source database built on MariaDB that runs completely inside Intel SGX enclaves. As storage engine, it uses RocksDB with a custom encryption engine. The engine uses AES-GCM and is optimized for RocksDB’s specific SST file layout and the enclave environment. It has some nice properties like global confidentiality and verifiability and it considers strong attackers like malicious admins or rootkits. It also delivers rather low overheads (<10% for the TPC-C benchmark on Azure). In short: all data is only ever decrypted inside the enclave. This is different from other databases, where data and corresponding keys are processed in the clear in memory. We believe this is useful because (1) it’s very secure and (2) it enables some interesting use cases, like secure data pooling between parties. If you’re interested in trying it out: here’s a quickstart guide. In essence, you can run the Docker image with a single command on any recent Intel Xeon with SGX. Code and more info can be found on GitHub. Would be great to get your feedback on this :-)

What are some alternatives?

When comparing LZ4 and RocksDB you can also consider the following projects:

zstd - Zstandard - Fast real-time compression algorithm

brotli - Brotli compression format

Snappy - A fast compressor/decompressor

LZMA - (Unofficial) Git mirror of LZMA SDK releases

LMDB - Read-only mirror of official repo on openldap.org. Issues and pull requests here are ignored. Use OpenLDAP ITS for issues.

LevelDB - LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.

ZLib - A massively spiffy yet delicately unobtrusive compression library.

SQLite - Unofficial git mirror of SQLite sources (see link for build instructions)

sled - the champagne of beta embedded databases

ClickHouse - ClickHouse® is a free analytics DBMS for big data

skywater-pdk - Open source process design kit for usage with SkyWater Technology Foundry's 130nm node.

LZFSE - LZFSE compression library and command line tool