Redis

active

by Redis Ltd. · since 2009 · also known as Redis Open Source, Redis OSS, Redis Stack

The in-memory data structure server that became the default cache, now with search, JSON and vectors built in.

key-valuedocumentvectortime-seriessearch enginedatabase engineopen source (copyleft)mature

Overview

Redis is a single-threaded-core, in-memory server for strings, hashes, lists, sets, sorted sets, streams and more, accessed over the simple RESP protocol. Since Redis 8 the former Stack modules (Query Engine with vector search, JSON, time series, probabilistic structures) ship in the core, so one binary covers caching, session storage, rate limiting, queues and semantic caching for LLM apps. Licensing is the big caveat: 7.4 moved to RSALv2/SSPLv1, and Redis 8 added AGPLv3 as a third option, which is why many clouds and distros now standardise on the BSD-licensed Valkey fork instead.

Strengths & trade-offs

Strengths

  • +Sub-millisecond reads and writes from RAM with rich data structures (sorted sets, streams, HyperLogLog)
  • +Redis 8 bundles vector search, JSON and time series in the core server
  • +Every language has a mature client and every cloud has a compatible managed service
  • +Streams with consumer groups double as a lightweight durable queue
  • +Huge operational knowledge base: patterns for rate limiting, locks, leaderboards

Trade-offs

  • −Dataset must fit in memory; RAM is the dominant cost at scale
  • −Mostly single-threaded command execution caps per-shard throughput
  • −Redis 8 licenses (AGPLv3/RSAL/SSPL) are a blocker for some legal teams
  • −MULTI/EXEC is not a rollback-capable ACID transaction
  • −Async replication can lose acknowledged writes on failover

Great for

  • +Application and database query caching
  • +Session storage and user tokens
  • +Rate limiting and distributed locks
  • +Leaderboards and counters
  • +Semantic caching and vector search for LLM apps
  • +Lightweight job queues with Streams

Think twice for

  • −Primary system of record needing durable multi-key transactions
  • −Datasets far larger than available RAM
  • −Complex ad-hoc analytical queries

Capabilities

Native or official first-party support · 13 of 25 tracked

✓Transactions
✓Secondary indexes
✓Full-text search
✓Vector search
✓Geospatial
✓JSON
✓Stored procedures
✓TTL / expiry
✓Pub/Sub
✓In-memory
✓Durable persistence
✓Role-based access
✓Streaming ingest
–Joins
–Change data capture
–Triggers
–Materialized views
–Columnar storage
–Compression
–Encryption at rest
–Time travel
–Branching
–Online schema changes
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Medium · ≤ 10 TB
Horizontal scaling
Native
Multi-region
Active active
Transactions
Limited ACID
Consistency
Eventual
Schema
Schemaless
Architecture
In memory, Single node, Primary replica, Distributed, Client server
Query languages
Redis commands (RESP), Lua, Redis Query Engine (FT.*)

Redis Cluster shards across 16,384 hash slots; dataset must fit in RAM. Active-Active (CRDT) geo-replication is a Redis Cloud/Software feature, not open source.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

available on · AWS · Google Cloud · Azure · DigitalOcean · Heroku · Render · Railway · Fly.io · Akamai

Ecosystem

compatible withRedis
apis & protocolsRESP2/RESP3, Redis Functions
client languagesPython, Java, JavaScript, Go, C#, Rust, Ruby, PHP, C
used byTwitter, GitHub, Snap, Stack Overflow

Alternatives to Redis

Compare all→
ValkeyKey-Value58.0

The Linux Foundation's BSD-licensed fork of Redis, now the default engine on AWS and Google Cloud.

redis vs valkey →
DragonflyKey-Value20.7

A multi-threaded, shared-nothing in-memory store that speaks Redis and Memcached on one big box.

redis vs dragonfly →
Microsoft GarnetKey-Value7.8

Microsoft Research's .NET cache-store that speaks RESP and scales across cores and storage tiers.

redis vs garnet →
MemcachedKey-Value50.6

The original multi-threaded, dead-simple distributed memory cache for key-value blobs.

redis vs memcached →
Amazon ElastiCacheKey-Value29.1

AWS's managed Valkey, Redis OSS and Memcached service, provisioned or serverless.

redis vs amazon-elasticache →
KeyDBKey-Value13.5

Snap's multi-threaded Redis fork with active-active replication and FLASH storage, now dormant.

redis vs keydb →

Redis FAQ

What is Redis?

Redis is a key-value database by Redis Ltd., first released in 2009. Redis is a single-threaded-core, in-memory server for strings, hashes, lists, sets, sorted sets, streams and more, accessed over the simple RESP protocol. Since Redis 8 the former Stack modules (Query Engine with vector search, JSON, time series, probabilistic structures) ship in the core, so one binary covers caching, session storage, rate limiting, queues and semantic caching for LLM apps. Licensing is the big caveat: 7.4 moved to RSALv2/SSPLv1, and Redis 8 added AGPLv3 as a third option, which is why many clouds and distros now standardise on the BSD-licensed Valkey fork instead.

Is Redis open source?

Yes. Redis is open source. License: Tri-license: AGPLv3, RSALv2 or SSPLv1 (Redis 8+).

Does Redis support ACID transactions?

Partly. Redis offers limited ACID guarantees (for example, single-record or single-partition transactions), with eventual consistency.

Does Redis scale horizontally?

Redis scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at medium scale (≤ 10 TB). It supports active-active multi-region writes.

How can I run Redis?

You can self-host it and use the vendor's managed cloud. Managed offerings include Redis Cloud, Azure Managed Redis and Amazon ElastiCache (Redis OSS engine). It is available on AWS, Google Cloud, Azure, DigitalOcean and Heroku.

What is Redis best for?

Redis is a strong fit for application and database query caching; session storage and user tokens; and rate limiting and distributed locks. Think twice for primary system of record needing durable multi-key transactions.

What are the best alternatives to Redis?

Common alternatives to Redis include Valkey, Dragonfly, Microsoft Garnet, Memcached and Amazon ElastiCache. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is Redis?

Redis ranks #2 of 844 databases on the WhichDB Score (84.3/100), and #1 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.