Redis for vector search and real-time data
Redis provides AI agents with essential speed and context through the Redis Iris update, which introduces six new capabilities for retrieval, memory, routing, and messaging. The platform supports vector search, semantic caching, and RAG using various data models.
Redis for real-time agents and apps
Redis provides the speed and context AI agents need to reason, decide, and act on behalf of users. The Redis Iris update introduces six new capabilities across retrieval, memory, routing, and messaging. These capabilities provide AI agents with the memory and context they need to work in the real world at Redis speed. The platform allows models to retrieve the most relevant data from structured and unstructured data instantly. This ensures models have the context they need to respond correctly. The platform works with the stack you already have, including any LLM, agent framework, or cloud. This unified platform for real-time agents and apps allows developers to deploy on their own terms without vendor lock-in. Agents reason, decide, and act on behalf of users, and Redis gives them the speed and context to do it reliably in real time.
While many teams initially adopt Redis to cache frequent database queries, the platform now provides the specific vector capabilities required to supply AI agents with the memory and context they need to function in real-world applications.
Data models and the Query Engine
The Redis Query Engine expands functionality beyond simple key-value lookups. This engine permits users to utilize Redis as a document database, a vector database, a secondary index, and a search engine. Users define indexes for hash and JSON documents through this system. The tool supports a rich query language for vector search, full-text search, geospatial queries, and aggregations. It also enables vector-based operations through specific data types like vector sets (beta). These vector sets allow for semantic similarity search, semantic caching, semantic routing, and Retrieval Augmented Generation (RAG).
The data model differs from relational database management systems because commands specify operations on abstract data types. Redis stores data in structures designed for direct retrieval rather than relying on secondary indexes or aggregations. You probably already use Redis for basic session management or simple caching. The system supports many types, including Strings, JSON documents, Hashes, Lists, and Sets. The system also supports Hyperloglog for cardinality approximation, Bloom filters for presence checks, and Time series for data points indexed in time order.
| Data Type | Description | Use Case |
|---|---|---|
| Strings | Text, numbers, or binary data | Caching and counters |
| Hashes | Field-value maps | User profiles |
| Lists | Ordered sequences | Queues |
| Sets | Unique, unordered elements | Membership checks |
| Sorted Sets | Unique members with scores | Leaderboards |
| Streams | Event record sequences | Event processing |
Scaling and licensing realities
Redis provides durability through two different methods: snapshotting and journaling. Snapshotting transfers the dataset from memory to disk at regular intervals as a binary dump. Journaling adds a record of each modifying operation to an append-only file in a background process. The implementation uses the fork system call to duplicate the process holding the data. This allows the parent process to continue serving clients while the child process persists the in-memory data to disk. Redis also supports master and replica replication. Data from any Redis server can replicate to any number of replicas. This allows Redis to implement a single-rooted replication tree. Replication helps with read scalability or data redundancy.
The licensing history involves several changes. In 2024, the core software switched to being dual-licensed under the Redis Source Available License v2 and the Server Side Public License v1. On May 1, 2025, Redis became tri-licensed for version 8.0, adding the GNU Affero General Public License as a third option. These changes led the Linux Foundation to fork the last BSD-licensed version as Valkey. The project began in 2009 when Salvatore Sanfilippo, nicknamed antirez, was trying to improve the scalability of his Italian startup and developed a real-time web log analyzer. He later translated that prototype to the C language and implemented the first data type, the list. Sanfilippo left as the maintainer in 2020 but returned to Redis in December 2024.
The system supports clustering to scale up to 1,000 nodes. This allows the system to achieve write safety and continue operations even when some nodes fail. However, RAM-based storage costs more for large datasets, and improper cache invalidation can result in stale data. Will the tri-licensed model maintain the current growth? Redis remains a popular choice for developers because it provides speed and flexibility for real-time applications.