Redis
Redis (Remote Dictionary Server) is an open-source, in-memory key-value data store supporting multiple data structures including strings, lists, hashes, sets, and sorted sets. It is commonly used for caching, session management, message queuing, and real-time leaderboards. Redis is known for high performance and low latency, and supports data persistence, primary-replica replication, and cluster modes. It is widely adopted in internet backend architectures to improve system response speed and throughput.
Core Facts
An Agent's memory system is typically divided into three levels: working memory (current conversation context window), short-term memory (recent interaction history), and long-term memory (persistently stored via a vector database)
Enterprise-grade Agent systems typically introduce external memory modules (such as vector databases) to store long-term memory, in order to overcome context window limitations.
MongoDB is a document-oriented NoSQL database that stores data in a JSON-like BSON format.
Timeline (last 90 days)
A semantic cache implemented with in-script dictionaries and lists loses its cache when the process exits; Redis VL (Redis Vector Library) can be used to build a near-production solution.
When deploying multiple instances in production, Agent state must be externalized to shared storage such as Redis or MongoDB.
AgentScope Java's Workspace can connect to storage such as Redis, JDBC and MongoDB, ensuring that drawing is not lost when scaling multiple instances up or down.
The core command for implementing a distributed lock with Redis is SET key value NX PX timeout, where NX ensures success only when the key does not exist, and PX sets an expiration time for the lock to prevent it from never being released if the holder crashes.
Redis's DECR/INCR commands can atomically increment or decrement and return the new value when the key exists, but cannot determine whether the result is negative, so they cannot be used alone for safe inventory deduction.
In concurrent scenarios, the simple "read-modify-write" inventory deduction pattern (reading the inventory value from Redis, and if it is greater than 0, subtracting 1 and writing it back) leads to overselling, because multiple requests may simultaneously read the same inventory value, each subtract 1 and write back, so that inventory is reduced by only 1 but multiple items are actually sold.
Cache breakdown is the instantaneous shock caused by a single hot key expiring, while cache avalanche is a large batch of keys expiring at the same moment or Redis going down entirely; the two have different causes and their mitigation strategies cannot be used interchangeably.
Some modules of Terraform and Redis have adopted a source-available release route.
In enterprise distributed systems, Agent session state must be centrally persisted (for example, via Redis or a database), and concurrent writes, timeout reclamation and multi-tenant isolation must be handled.
Before learning Spring AI Alibaba, one needs a foundation in Spring Boot 3, JDK 17 or above, Maven, MySQL, Redis, and at least experience using one general-purpose large model (such as DeepSeek, Tongyi Qianwen, Doubao, Ernie Bot, etc.).
40 more timeline events
All Facts (20)
An Agent's memory system is typically divided into three levels: working memory (current conversation context window), short-term memory (recent interaction history), and long-term memory (persistently stored via a vector database)
80%VerifiedEnterprise-grade Agent systems typically introduce external memory modules (such as vector databases) to store long-term memory, in order to overcome context window limitations.
80%VerifiedMongoDB is a document-oriented NoSQL database that stores data in a JSON-like BSON format.
80%VerifiedDify's core architecture adopts a microservices design, using Docker Compose to decouple and deploy components such as the API service, Worker, Web frontend, PostgreSQL, Redis, and vector database.
80%VerifiedThe WebSocket protocol establishes a persistent bidirectional communication channel through which the server can proactively push data to the client, with latency as low as milliseconds.
75%VerifiedBefore learning Spring AI Alibaba, one needs a foundation in Spring Boot 3, JDK 17 or above, Maven, MySQL, Redis, and at least experience using one general-purpose large model (such as DeepSeek, Tongyi Qianwen, Doubao, Ernie Bot, etc.).
70%VerifiedSQLiteSession is the approach in the OpenAI Agents SDK for locally persisting session memory, and it does not depend on OpenAI servers.
65%VerifiedDify is composed of multiple service components, including a web frontend, API service, database, and vector database, and Docker Compose can be used to orchestrate and start them all with a single command.
65%VerifiedDify includes multiple service components, including a web frontend, API backend, PostgreSQL database, Redis cache, Weaviate vector database, etc., which can be started with a single command via Docker Compose.
65%VerifiedIn an Agent framework, Checkpointing serializes the current execution state and persists it to external storage (a database or Redis), while suspending the execution thread and resuming after human input is received.
65%VerifiedRAGFlow depends on multiple services including Elasticsearch (full-text search), Redis (caching), and MySQL (metadata storage)
65%VerifiedSalvatore Sanfilippo created the Redis project in 2009, originally to solve performance problems he encountered while developing the real-time web analytics system LLOOGG.
65%VerifiedAll Redis commands are executed serially in a single main thread, using a single-threaded event-driven architecture.
65%VerifiedRAGFlow is deployed based on Docker containerization and runs five containers upon startup: Redis, MinIO, MySQL, Elasticsearch, and RAGFlow Server.
65%VerifiedCelery's core architecture consists of three components—Producer, Broker, and Worker—where the Broker typically uses Redis or RabbitMQ.
65%VerifiedLangGraph's long-term storage supports multiple backends, including PostgreSQL for structured data, vector databases such as Pinecone and Chroma for semantic retrieval, and Redis for high-speed caching.
65%Unverifiedantirez stepped down as Redis maintainer in 2020
90%UnverifiedIdempotency implementation schemes to prevent duplicate charges include database unique constraints, state machine checks, Redis distributed locks, and optimistic lock version numbers.
90%UnverifiedAfter Redis 6.0, I/O multithreading was introduced, but command execution remains single-threaded.
90%UnverifiedRedis's SCAN command uses a reverse binary iteration cursor advancement algorithm.
90%