Blazing fast, open source in-memory data store for use as a database, cache, message broker, and queue.

Redis is an open source, in-memory data store that delivers sub-millisecond response times enabling millions of requests per second to power real-time applications. It can be used as a fast database, cache, message broker, and queue. Redis provides a variety of data structures including strings, lists, sets, sorted sets, hashmaps, hyperloglogs , and bitmaps. Other Redis features include high availability, geospatial, Lua scripting, transactions, on-disk persistence, and cluster support. Redis is BSD licensed, written in optimized C code, and supports multiple development languages and open source tools. Redis is an acronym for REmote DIctionary Server.

Leading use-cases for Redis include database caching, session store, streaming data analytics, geospatial analytics, chat/messaging, real-time data store for media streaming, and gaming leaderboards. Due to its speed and ease-of-use, Redis is a popular choice for Gaming, Ad-Tech, Financial Services, Healthcare, and IoT applications that require best-in-class performance, scalability, and availability.



Why Redis?

In-memory data store

All Redis data resides in server’s main memory, in contrast to databases such as PostgreSQL, Cassandra, MongoDB and others that store most data on disk or on SSDs. In comparison to traditional disk based databases where most operations require a roundtrip to disk, in-memory data stores such as Redis don’t suffer the same penalty, therefore can support an order of magnitude more operations and faster response times. The result is – blazing fast performance with average read or write operations taking less than a millisecond and support for millions of operations per second.

Flexible data structures

Unlike simplistic key value data stores that offer limited data structures, Redis has vast variety of data structures to meet your application needs. Redis data types include String, which can be text or binary data up to 512MB in size; Lists are a collection of Strings in the order they were added; Sets are an unordered collection of strings with the ability to intersect, union and diff other Set types; Sorted Sets are Sets ordered by a value; Hashes, store a list of fields and values; Geospatial indices store location coordinates; Bitmaps offer bit level operations; and HyperLogLogs, are a probabilistic data structure to estimate the unique items in a data set.

Simplicity and ease-of-use

Redis simplifies your code by enabling you to write fewer lines of code to store, access, and use data in your applications. For example, if your application has data stored in a hashmap, and you want to store that data in a data store – you can simply use Redis hash data structure to store the data. Similar task on a data store with no hash data structures would require many lines of code to convert from one format to another. Redis comes with native data structures and many options to manipulate and interact with your data. Over a hundred open source clients are available for Redis developers. Supported languages include Java, Python, PHP, C, C++, C#, JavaScript, Node.js, Ruby, R, Go and many others.

Replication and persistence

Redis employs a primary-replica architecture and supports asynchronous replication where data can be replicated to multiple replica servers. This provides improved read performance (as requests can be split among the servers) and faster recovery when the primary server experiences an outage. For persistence, Redis supports both point-in-time backups (copying the Redis data set to disk) and creating an Append Only File (AOF) to store each data change to disk as it is written.

High Availability and scalability

Redis offers a primary-replica architecture in a single node primary or a clustered topology. This allows you to build highly available solutions providing consistent performance and reliably. When you need to adjust your cluster size, various options to scale up, scale in or out are also available. This allows your cluster to grow with your demands.


Redis is an open source project supported by a vibrant community. There’s no vendor or technology lock in as Redis is open standards based, supports open data formats, and features a rich set of clients. Furthermore, customers can extend Redis to meet their specific needs with Redis Modules.


Redis is a great choice for implementing a highly available in-memory cache to decrease data access latency, increase throughput, and ease the load off your relational or NoSQL database and application. Redis can serve frequently requested items at sub-millisecond response times, and enables you to easily scale for higher loads without growing the costlier backend. Database query results caching, persistent session caching, web page caching, and caching frequency used objects such as images, files, and metadata are all popular examples of caching with Redis.

Chat, messaging, and queues

Redis supports Pub/Sub with pattern matching and a variety of data structures such as lists, sorted sets, and hashes to support various types of data content. This allows Redis to support high performance chat rooms, real-time comment streams, social media feeds and server intercommunication. The Redis List data structure makes it easy to implement a lightweight queue. Lists offer atomic operations as well as blocking capabilities, making them suitable for a variety of applications that require a reliable message broker or a circular list.

Gaming leaderboards

Redis is a popular choice among game developers looking to build real-time leaderboards. Simply use the Redis Sorted Set data structure, which provides uniqueness of elements while maintaining the list sorted by their scores. Creating a real-time ranked list is as easy as updating a user's score each time it changes. You can also use Sorted Sets to handle time series data by using timestamps as the score.

Session store

Redis as an in-memory data store with high availability and persistence is a popular choice among application developers to store and manage session data for internet-scale applications. Redis provides the sub-millisecond latency, scale, and resiliency required to manage session data such as user profiles, credentials, session state, and user-specific personalization.

Rich media streaming

Redis offers a fast, in-memory data store to power live streaming use cases. Redis can be used to store metadata for users profile and viewing history, authentication information/tokens for millions of users, and manifest files to enable CDNs to stream videos to millions of mobile and desktop users at a time.


Redis offers purpose-built in-memory data structures and operators to manage real-time geospatial data at scale and speed. Commands such as GEOADD, GEODIST, GEORADIUS, and GEORADIUSBYMEMBER to store, process, and analyze geospatial data in real-time make geospatial easy and fast with Redis. You can use Redis to add location-based features such as drive time, drive distance, and points of interests to your applications.

Machine Learning

Modern data-driven applications require machine learning to quickly process massive volume, variety, and velocity of data and automate decision making. For use cases like fraud detection in gaming and financial services, real-time bidding in ad-tech, and matchmaking in dating and ride sharing, the ability to process live data and make decisions within tens of milliseconds is of utmost importance. Redis gives you a fast in-memory data store to build, train, and deploy machine learning models quickly.

Real-time analytics

Redis can be used with streaming solutions such as Apache Kafka and Amazon Kinesis as an in-memory data store to ingest, process, and analyze real-time data with sub-millisecond latency. Redis is an ideal choice for real-time analytics uses cases such as social media analytics, ad targeting, personalization, and IoT.

Language support

Redis supports most leading programming languages and protocols, including:




Fully managed Redis on AWS

Amazon offers a fully managed Redis service, Amazon ElastiCache for Redis, available for trial at no cost with the AWS Free Tier. Amazon ElastiCache for Redis makes it easy to set up, operate, and scale Redis deployments in the cloud. With Amazon ElastiCache, you can deploy internet-scale Redis deployments in minutes, with cost-efficient and resizable hardware capacity.
Getting started with free Amazon ElastiCache for Redis in three easy steps:
Amazon Elasticache for Redis

Sign up for Amazon ElastiCache for Redis

Get access to the Amazon ElastiCache Free Tier.
Learn Amazon Elasticache for Redis

Learn with Simple Tutorials

Get Started with ElastiCache for Redis

Start building with Amazon ElastiCache for Redis

Begin building with help from the Amazon ElastiCache for Redis user guide.