Graph
Redis

⚡Redis

NEW

An in-memory key–value data store used as a cache, database, message broker, and streaming engine for real-time applications.

DESCRIPTION

Redis delivers sub-millisecond latency by storing data in memory and supports rich data structures like strings, hashes, lists, sets, sorted sets, and streams. It offers persistence through RDB snapshots and AOF logs, replication, clustering, and pub/sub messaging. Redis underpins caching layers, session stores, rate limiters, leaderboards, and low-latency queues. Integrations span most languages, and managed offerings simplify operations. Proper sizing and persistence strategy are crucial for durability and cost.

ALTERNATIVE DEFINITIONS

Redis

Redis is an in-memory data store used by millions as a cache, vector database, streaming engine, and message broker.

Highlights multipurpose use beyond caching, including streaming and vector search.

Source

AWS

Redis is a fast, open-source, in-memory key-value data store that provides sub-millisecond latency for real-time applications.

Emphasizes low latency and real-time use cases in a managed context.

Source

Key-Value Store Cache Google Cloud Pub-Sub Redis Streams Redis Cluster RDB Snapshot AOF Persistence Lua Scripting TTL

COMPETING TERMS

Memcached Aerospike

KNOWLEDGE AREAS

Data Storage & Operations Real-time & Streaming Data Infrastructure Data Engineering

TARGET AUDIENCE

Software Developer Data Engineer DevOps Engineer MLOps Engineer

EXTERNAL SOURCES

TOP QUESTIONS

When should I use Redis?

Use Redis for ultra-low-latency caching, session storage, rate limiting, pub/sub messaging, and lightweight queues or streams.

Category: UseCases

How does Redis persistence work?

Redis supports RDB snapshots for periodic dumps and AOF for append-only logging. You can combine them for faster restarts and durability.

Category: Architecture

What are Redis data structures and why do they matter?

Redis offers strings, hashes, lists, sets, sorted sets, and streams, enabling efficient operations like counters, leaderboards, and timelines.

Category: Features

How do I scale Redis?

Use replication for reads, clustering for sharding, and optimize memory with eviction policies. Managed services simplify scaling.

Category: Scalability

What are common Redis mistakes?

Unbounded keys, large values, or lacking TTLs cause memory pressure. Ignoring persistence needs risks data loss on failures.

Category: Mistakes

Is Redis only a cache?

No. Redis can act as a primary store for specific workloads, alongside messaging, streaming, and search functionalities.

Category: Misunderstanding

How does Redis compare to Memcached?

Redis supports richer data types, persistence, and clustering, while Memcached is simpler and focused purely on in-memory caching.

Category: Comparison

How do I secure Redis?

Deploy behind firewalls, use ACLs, TLS, strong auth, and disabled dangerous commands. For PaaS, enforce VPC and IAM controls.

Category: Security

What’s the risk of using Redis without persistence?

You may lose data on restart or failure. Assess durability needs and configure AOF/RDB accordingly.

Category: Risk