Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. C/C++
  3. LevelDB

LevelDB

BSD-3-ClauseC++1.23

A fast key-value storage library from Google providing ordered mapping from string keys to string values.

GitHubGitHub
39.1k stars8.2k forks0 contributors

What is LevelDB?

LevelDB is an open-source key-value storage library written by Google that provides an ordered mapping from string keys to string values. It is designed for high-performance embedded storage where data needs to be persisted and accessed quickly with sorted key traversal. The library handles automatic compression and supports atomic batch operations for data consistency.

Target Audience

Developers building applications that require fast, lightweight, persistent key-value storage, such as database engines, caching systems, or embedded data management solutions.

Value Proposition

LevelDB offers a reliable and fast key-value store with minimal dependencies, sorted key ordering for efficient range queries, and a stable C++ API. Its performance and simplicity make it a preferred choice over heavier database solutions when SQL or client-server architecture is unnecessary.

Overview

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

Use Cases

Best For

  • Embedding a persistent key-value store within applications
  • Building database storage engines that require sorted key traversal
  • Implementing caching layers with disk persistence
  • Storing configuration or state data with fast read/write access
  • Developing experimental or lightweight database prototypes
  • Applications needing atomic batch writes for data consistency

Not Ideal For

  • Applications requiring SQL queries or relational data models
  • Systems needing multi-process concurrent database access
  • Projects that want a drop-in client-server database without additional server wrapping
  • Use cases demanding active feature development and community support

Pros & Cons

Pros

High-Performance Storage

Benchmarks in the README show fast operations, with random writes at approximately 400,000 per second and efficient compression using Snappy for reduced storage footprint.

Sorted Key Ordering

Data is automatically stored and retrieved in sorted key order, enabling efficient range queries and forward/backward iteration as outlined in the features section.

Atomic Batch Operations

Supports grouping multiple writes into a single atomic batch, ensuring data consistency without the complexity of full transaction systems.

Flexible Customization

Allows custom comparators for sort order and a pluggable environment for OS interactions, providing adaptability for specific use cases as per the documentation.

Cons

Single-Process Access Limitation

Only a single process can access a database at a time, which severely restricts scalability in distributed or multi-process applications, as stated in the limitations.

No Built-In Networking

Lacks client-server support; applications must implement their own server layer if remote access is needed, adding significant development overhead.

Limited Maintenance

The repository is in limited maintenance mode, primarily fixing critical bugs, which means fewer updates and potential stagnation for evolving projects.

Frequently Asked Questions

Quick Stats

Stars39,129
Forks8,199
Contributors0
Open Issues255
Last commit2 months ago
CreatedSince 2014

Tags

#snapshot#storage-engine#c-plus-plus#key-value-store#embedded-database#google#persistent-storage#compression

Built With

S
Snappy
Z
ZSTD
C
CMake
C
C++

Included in

C/C++70.6k
Auto-fetched 21 hours ago

Related Projects

RocksDBRocksDB

A library that provides an embeddable, persistent key-value store for fast storage.

Stars31,736
Forks6,846
Last commit2 days ago
HiredisHiredis

Minimalistic C client for Redis >= 1.2

Stars6,655
Forks1,848
Last commit4 days ago
InfinityInfinity

The AI-native database built for LLM applications, providing incredibly fast hybrid search of dense vector, sparse vector, tensor (multi-vector), and full-text.

Stars4,556
Forks424
Last commit1 day ago
KvrocksKvrocks

Apache Kvrocks is a distributed key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol.

Stars4,331
Forks632
Last commit4 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub