Skip to main content

Guide ยท Managed Redis and Valkey

Best Managed Redis and Valkey for AI Apps

Last reviewed

We earn commissions when you shop through the links below.

AI apps lean on a fast key-value store for the small jobs around the model: rate limiting users and API keys, caching LLM responses, keeping session and chat state, and feeding job queues for slow agent work. Redis and its open source fork Valkey both do this well, so the real choice is who runs it. Look at how your app connects (serverless functions or long-running servers), whether you need vector search for a semantic cache, and what happens to your data when a node fails.

Quick pick

Serverless or edge functions that connect over HTTP
Upstash
Vector search and semantic caching from the Redis team
Redis Cloud
Your company already runs on AWS or Google Cloud
AWS ElastiCache or MemoryDB, or Google Memorystore
A simple managed cache next to your app servers
DigitalOcean Managed Databases for Valkey
One provider for Valkey across several clouds
Aiven for Valkey
Full control and you're happy to run it
Valkey on your own virtual machine

The options, and when to use each

Upstash Redis

serverlessHTTPpay per request

Use it for: Your app runs on serverless or edge functions; you connect over HTTP from any runtime and pay per request, which suits rate limiters and small caches.

Tradeoff: Per-request pricing that's cheap for light traffic can add up for a busy cache or queue; compare it with a fixed plan once usage is steady.

Redis Cloud

Redisvector searchsemantic search

Use it for: You want Redis from the company that makes it, including vector search for RAG and semantic caching in the same store as your regular cache.

Tradeoff: The extra features tie you closer to Redis itself; if you only need a plain cache, a Valkey service may be simpler.

AWS ElastiCache

AWSValkeyRedis OSS

Use it for: Your app and team already live in AWS, and you want the cache inside the same network and IAM setup.

Tradeoff: Many knobs (node types, VPCs, parameter groups), and reaching it from outside your VPC takes extra networking work.

Amazon MemoryDB

AWSdurableValkey

Use it for: You're on AWS and the data must survive failures, like session state or queues you can't rebuild; AWS describes it as a durable in-memory database.

Tradeoff: More than you need for a throwaway cache; use ElastiCache when losing cached data is fine.

Google Memorystore

Google CloudValkeyRedis

Use it for: You're on Google Cloud and want managed Valkey, Redis or Memcached next to the rest of your stack.

Tradeoff: Most at home inside Google Cloud; setup and networking feel heavy from outside it.

DigitalOcean Managed Databases for Valkey

managedValkeyRedis-compatible

Use it for: A straightforward managed cache for rate limits, sessions and LLM response caching: DigitalOcean handles provisioning, backups and updates, and can fail over automatically to a standby node.

Tradeoff: A plain key-value store: no built-in vector search for semantic caching, so that lives in your vector database or app.

Aiven for Valkey

multi-cloudopen source

Use it for: You want the same managed Valkey on Google Cloud, AWS, Azure or DigitalOcean, with high availability options.

Tradeoff: Another vendor and bill on top of your cloud provider; worth it mostly if you run on more than one cloud.

Dragonfly

Redis-compatibleself-host or cloud

Use it for: Your cache or queue has outgrown a single Redis node; Dragonfly is API compatible with Redis, Valkey and Memcached, and runs self-hosted or in their cloud.

Tradeoff: A separate engine from Redis and Valkey; test the commands and client libraries you depend on before you switch.

Skills that use these tools