About 22; min
Redis and Memcached have been the default caching layers for web applications since the mid-2000s. Then Dragonfly appeared in 2022 claiming to be 25x faster than Redis. Valkey forked from Redis after the license change. And managed services like Upstash offer serverless Redis with pay-per-request pricing.
The caching market shifted dramatically in 2024–2025. Here’s what each option costs and when each one makes sense in 2026.
Quick Pricing Comparison
| Option | Self-Hosted Cost | Managed Cost | Best For |
|---|---|---|---|
| Redis (source-available) | Free (SSPL license) | Redis Cloud: $5/mo+ | Feature-rich caching + data structures |
| Valkey (open-source fork) | Free (BSD license) | AWS ElastiCache/MemoryDB | Redis compatibility without license concerns |
| Dragonfly | Free (BSL license) | Dragonfly Cloud: $70/mo+ | High-throughput, multi-threaded performance |
| Memcached | Free (BSD license) | AWS ElastiCache: $13/mo+ | Simple key-value caching |
| Upstash Redis | N/A (serverless only) | Free (10K cmd/day), $0.20/100K | Serverless apps, low-traffic caching |
Redis: The Feature King
Redis changed its license from BSD to SSPL in 2024, which means cloud providers can’t offer Redis-as-a-service without a commercial agreement. Redis Labs (now Redis Inc.) offers Redis Cloud as their managed service. AWS and others switched to Valkey.
Redis Data Structures Beyond Caching
Redis isn’t just a cache. It’s a data structure server that handles:
- Pub/Sub: Real-time messaging between services
- Streams: Event log processing (like a lightweight Kafka)
- Sorted Sets: Leaderboards, rate limiters, priority queues
- JSON: Store and query JSON documents (RedisJSON module)
- Search: Full-text search and vector search (RediSearch module)
- Time Series: Metrics and IoT data (RedisTimeSeries module)
If you use any of these features, Redis (or Valkey, which supports the same commands) is the only option. Memcached supports only simple key-value operations.
Valkey: The Open-Source Redis
Valkey is a direct fork of Redis 7.2 maintained by the Linux Foundation with backing from AWS, Google, Oracle, and Alibaba. It’s 100% compatible with Redis clients — your existing Redis code works with Valkey without changes.
The key advantage: BSD license. You can use Valkey in any context without SSPL restrictions. AWS ElastiCache and Google Cloud Memorystore now run Valkey instead of Redis.
Managed Valkey Pricing
| Provider | Smallest Instance | Monthly Cost |
|---|---|---|
| AWS ElastiCache (Valkey) | cache.t4g.micro (0.5 GB) | ~$13 |
| AWS ElastiCache (Valkey) | cache.r7g.large (13 GB) | ~$150 |
| Google Cloud Memorystore | Basic 1 GB | ~$35 |
Dragonfly: 25x Faster (Sometimes)
Dragonfly’s multi-threaded architecture handles millions of operations per second on a single machine. Redis is single-threaded — to scale, you need Redis Cluster with multiple instances. Dragonfly achieves the same throughput on one server, reducing operational complexity.
When Dragonfly’s Speed Matters
For most web applications, Redis on a small instance handles 50K–100K operations per second — more than enough. Dragonfly’s speed advantage shows at extreme scale:
- Rate limiting at 1M+ requests/second
- Real-time analytics with millions of concurrent counters
- Session stores for 100K+ concurrent users
- Gaming leaderboards with millions of entries
If your Redis instance runs at less than 50% CPU, Dragonfly’s performance advantage won’t matter to you. Save the complexity.
Upstash: Serverless Redis
Upstash is serverless Redis with per-command pricing. No server to manage, no connections to pool, no capacity to plan. Your cache scales automatically from zero to whatever your app needs.
Upstash Pricing Math
| Daily Commands | Monthly Commands | Monthly Cost |
|---|---|---|
| 10K (free tier) | 300K | $0 |
| 100K | 3M | $6 |
| 1M | 30M | $60 |
| 10M | 300M | $600 |
Upstash is cheap at low volume ($6/month for 3M commands) but expensive at high volume ($600/month for 300M commands). A self-hosted Redis handling 300M commands costs about $50/month on a small VPS. The crossover point is roughly 50M commands/month — below that, Upstash is simpler. Above that, managed or self-hosted Redis is cheaper.
Upstash’s Killer Use Case
Serverless functions (Vercel, Cloudflare Workers, AWS Lambda) can’t maintain persistent connections to Redis. Upstash’s REST API works over HTTP — no connection pooling needed. This makes it the default Redis choice for serverless architectures.
Memcached: The Simple Option
Memcached is the original caching server. It does one thing: store key-value pairs in RAM. No persistence, no data structures, no pub/sub. It’s faster than Redis for pure get/set operations because there’s less overhead.
In 2026, Memcached makes sense in one scenario: you need a simple, high-throughput cache with no persistence requirements, and you already have Memcached expertise on your team. For everyone else, Redis/Valkey offers the same caching plus additional data structures at comparable performance.
Cost Comparison: Common Scenarios
Small app cache (1 GB, low traffic)
| Option | Monthly Cost |
|---|---|
| Upstash (3M commands) | $6 |
| Redis Cloud Essentials (1 GB) | $12 |
| AWS ElastiCache Valkey (t4g.micro) | $13 |
| Self-hosted on VPS | $5 (part of existing server) |
Medium app (5 GB, moderate traffic, 50M commands/mo)
| Option | Monthly Cost |
|---|---|
| Upstash | $100 |
| Redis Cloud Essentials (5 GB) | $45 |
| AWS ElastiCache (r7g.large) | $150 |
| Self-hosted Valkey (4 GB VPS) | $24 |
| Self-hosted Dragonfly (4 GB VPS) | $24 |
High-traffic app (50 GB, 500M commands/mo)
| Option | Monthly Cost |
|---|---|
| Upstash | $1,000 |
| Redis Cloud Pro | $300+ |
| AWS ElastiCache Cluster | $400+ |
| Self-hosted Valkey Cluster | $100–$200 |
| Self-hosted Dragonfly (single node) | $100 |
At high traffic, self-hosted Dragonfly on a single large server ($100/month) potentially replaces a Redis Cluster that costs $300–$400 in managed services. Dragonfly’s multi-threaded design handles workloads that would require 3–4 Redis nodes on a single machine.
Who Should Pick What
Pick Redis Cloud If:
- You need Redis Modules (Search, JSON, TimeSeries) and want official support
- Active-Active geo-replication across regions is required
- You want the official Redis managed service with 99.999% SLA
Pick Valkey (managed or self-hosted) If:
- You want Redis compatibility with a truly open-source BSD license
- You’re on AWS (ElastiCache now runs Valkey by default)
- License concerns prevent you from using Redis SSPL
Pick Dragonfly If:
- You need extreme throughput (millions of ops/sec) on a single node
- Reducing from a Redis Cluster to a single Dragonfly instance saves operational cost
- You’re comfortable with BSL license terms
Pick Upstash If:
- Your app runs on serverless (Vercel, Cloudflare Workers, Lambda)
- Traffic is low-to-moderate (under 50M commands/month)
- You want zero server management and automatic scaling
Pick Memcached If:
- You need pure key-value caching with no other features
- Your team already has Memcached expertise and infrastructure
- Persistence is not needed (cache can be rebuilt from source data)
Best for most apps: Valkey (self-hosted or AWS ElastiCache) — full Redis compatibility, open-source BSD license, and the backing of major cloud providers. The default choice in 2026.
Best for serverless: Upstash — REST API, per-command pricing, and zero connection management. The only Redis that works natively with edge functions.
Best for extreme scale: Dragonfly — single-node performance that replaces Redis clusters. Simplifies operations at high throughput.
Best managed service: Redis Cloud — the official platform with exclusive features (Active-Active, Modules) and the highest SLA. Worth the premium for mission-critical deployments.
FAQ
Is Redis still open source?
No. Redis switched to SSPL (Server Side Public License) in March 2024. This means cloud providers need a commercial license to offer Redis-as-a-service. Self-hosting for your own applications is still free. If open-source licensing matters, use Valkey (BSD) instead.
Should I switch from Redis to Valkey?
If you self-host: Valkey is a drop-in replacement. Switch and benefit from the BSD license. If you use Redis Cloud: no need to switch — you already have a commercial license through Redis Inc. If you use AWS ElastiCache: AWS already migrated to Valkey for you.
Is Upstash reliable for production?
Yes. Upstash powers thousands of production apps with automatic replication and 99.99% uptime. The serverless model means there’s no single server to fail — data is replicated across multiple nodes automatically.
Can Dragonfly really replace Redis Cluster?
For throughput, often yes. A single Dragonfly instance on a 16-core server handles workloads that require 4–6 Redis nodes. However, Dragonfly doesn’t support Redis Cluster protocol for client-side sharding or all Redis Modules. Test with your specific workload before migrating.




