StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Application & Data
  3. Languages
  4. Pypi Packages
  5. lmdb vs redis

lmdb vs redis

OverviewComparisonAlternatives

Overview

redis
redis
Stacks424
Followers8
Votes0
lmdb
lmdb
Stacks24
Followers3
Votes0
GitHub Stars593
Forks90

lmdb vs redis: What are the differences?

Introduction

In this article, we will compare the key differences between lmdb and Redis, two popular data storage solutions. Markdown code will be used to format the content for a website.

  1. Performance: Lmdb is an embedded database library that is highly optimized for read performance. It is designed to work with local files and can perform extremely fast reads even with large datasets. On the other hand, Redis is an in-memory data structure store, which means it stores data primarily in RAM. This enables Redis to achieve ultra-fast read and write operations, making it an excellent choice for applications that prioritize speed.

  2. Data Storage: Lmdb is a disk-based database, where data is stored on the local file system. It provides transactional ACID (Atomicity, Consistency, Isolation, Durability) semantics, ensuring data integrity. Redis, on the other hand, stores data in-memory and supports persistence options like snapshots and append-only logs. It can also replicate data to multiple nodes, making it highly available and fault-tolerant.

  3. Data Structure Support: Redis supports a wide range of data structures like strings, hashes, lists, sets, and more. These data structures provide powerful features and operations that can be used for various use cases. Lmdb, on the other hand, is optimized for key-value storage and does not provide built-in support for complex data structures. It focuses on simplicity and efficiency for key-value pairs.

  4. Scalability: Redis is known for its outstanding scalability. It can handle millions of operations per second and can be scaled horizontally by adding more nodes to a Redis cluster. Lmdb, being an embedded database, is limited to the capacity and performance of a single instance. However, multiple instances of Lmdb can be used in a distributed setup to handle larger workloads.

  5. Data eviction and expiration: Redis provides various mechanisms for data eviction and expiration. It allows setting expiration times on keys and can automatically remove keys based on memory usage policies. Lmdb does not have built-in features for automatic data eviction or expiration. The application using Lmdb needs to implement custom logic for managing data expiration or eviction.

  6. Language Support: Redis is implemented in C and supports multiple programming languages through client libraries. It has wide language compatibility, making it easier to use in different application environments. Lmdb, on the other hand, provides bindings for popular programming languages like C, C++, Python, Ruby, and more. However, it may not have the same level of language support as Redis.

In Summary, Lmdb and Redis differ in terms of performance, data storage, data structure support, scalability, data eviction and expiration, and language support. Redis is optimized for in-memory operations and provides excellent performance, while Lmdb focuses on efficient disk-based key-value storage. Both have their strengths and are suitable for different use cases.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Detailed Comparison

redis
redis
lmdb
lmdb

Python client for Redis key-value store.

Universal Python binding for the LMDB 'Lightning' Database.

Statistics
GitHub Stars
-
GitHub Stars
593
GitHub Forks
-
GitHub Forks
90
Stacks
424
Stacks
24
Followers
8
Followers
3
Votes
0
Votes
0

What are some alternatives to redis, lmdb?

google

google

Python bindings to the Google search engine.

requests

requests

Python HTTP for Humans.

pytest

pytest

Pytest: simple powerful testing with Python.

boto3

boto3

The AWS SDK for Python.

pandas

pandas

Powerful data structures for data analysis, time series, and statistics.

numpy

numpy

NumPy is the fundamental package for array computing with Python.

six

six

Python 2 and 3 compatibility utilities.

urllib3

urllib3

HTTP library with thread-safe connection pooling, file post, and more.

python-dateutil

python-dateutil

Extensions to the standard Python datetime module.

flake8

flake8

The modular source code checker: pep8, pyflakes and co.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase