Dictionary
Redis
Redis is an in-memory data structure store used as a database, cache, message broker, and streaming engine. It delivers sub-millisecond response times by keeping all data in memory, supporting data structures including strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, and streams. Each data structure comes with specialized commands optimized for common operations.
Beyond simple key-value caching, Redis supports pub/sub messaging for real-time communication between services, Lua scripting for atomic multi-step operations, transactions, TTL-based key expiration, and persistence options that write data to disk for durability. Redis Streams provide a log-based data structure suitable for event sourcing and message queue patterns. Redis Cluster enables horizontal scaling across multiple nodes.
For web development teams, Redis appears in nearly every production architecture. Common use cases include session storage that persists across application server restarts, caching database query results or API responses to reduce load and latency, rate limiting to protect APIs from abuse, leaderboards implemented with sorted sets, real-time analytics counters, and job queue backends for libraries like BullMQ and Sidekiq. Its speed and versatility make it one of the most widely deployed infrastructure components in modern web applications.