Upstash Redis & QStash Pricing: Serverless Commands & Bill Simulator (2026)
Pay-as-you-go at $0.20 per 100,000 commands. Understand how serverless HTTP Redis cuts hosting costs for Next.js rate limiting, session caching, and background queues.
Upstash Serverless Redis & QStash Calculator
Calculate monthly commands, memory footprint, and QStash background messaging costs.
1. Upstash Pricing Tiers Comparison
Upstash provides both pay-as-you-go and fixed throughput options for high-concurrency applications:
| Plan | Base Price | Command Rate | Max Concurrency | Storage Rate |
|---|---|---|---|---|
| Free Tier | $0 | 10,000 commands / day free | 100 concurrent requests | 256 MB free |
| Pay-As-You-Go | $0 (pay per usage) | $0.20 per 100,000 commands | 1,000 concurrent requests | $0.25 per 100 MB / mo |
| Fixed Pro (100k) | $280 / month | Unlimited up to 100k req/sec | 100,000 req/sec dedicated | Included up to plan GB |
Frequently Asked Questions
Serverless Redis Architecture, HTTP REST Pipelines & Command Pricing Sizing
Upstash Redis is purpose-built for modern serverless architectures (Vercel, AWS Lambda, Cloudflare Workers) where persistent TCP connection pooling is prohibited or difficult to maintain. By offering a stateless HTTP/REST pipeline protocol alongside standard Redis TCP, Upstash enables edge functions to execute atomic key-value operations with zero connection startup overhead. Upstash bills purely on command volume ($0.20 per 100,000 commands on pay-as-you-go) with a free tier granting 10,000 commands daily.
Upstash Serverless vs Redis Cloud Dedicated Provisioning
| Daily Command Volume | Monthly Commands | Upstash PayG Cost | Upstash Fixed Pro | Redis Cloud Dedicated |
|---|---|---|---|---|
| 10,000 commands/day | 300,000 commands | $0.00 (Free Tier) | $10.00 / mo | $5.00 / mo |
| 500,000 commands/day | 15,000,000 commands | $30.00 / mo | $40.00 / mo | $65.00 / mo |
| 5,000,000 commands/day | 150,000,000 commands | $280.00 (Cap at $120 Pro) | $120.00 / mo | $240.00 / mo |
Atomic Token Bucket Rate Limiter in TypeScript
Implement edge API rate limiting utilizing the Upstash Ratelimit algorithm:
import { Redis } from "@upstash/redis";
import { Ratelimit } from "@upstash/ratelimit";
const redis = new Redis({
url: process.env.UPSTASH_REDIS_REST_URL!,
token: process.env.UPSTASH_REDIS_REST_TOKEN!
});
// Create sliding window rate limiter: 100 requests per 60 seconds
const ratelimit = new Ratelimit({
redis: redis,
limiter: Ratelimit.slidingWindow(100, "60 s"),
analytics: true
});
export async function checkRateLimit(userId: string) {
const { success, limit, remaining, reset } = await ratelimit.limit(userId);
return { success, remaining, reset };
}
Global Edge Replication & In-Memory Pipeline Latency
For globally distributed edge workers, Upstash provides Global Database multi-region read replication. Writes route to a primary region while reads execute from local edge replicas, delivering sub-15ms P95 read latencies globally. When issuing multiple commands from a single function execution, use HTTP pipelining (`redis.pipeline()`) to pack commands into a single round-trip HTTP request, cutting network latency by 80%.
Serverless Connection Optimization & HTTP Pipeline Latency
In serverless microservices where functions scale rapidly from 0 to 10,000 concurrent instances, Upstash Redis eliminates connection pooling bottlenecks by processing commands via stateless HTTP REST calls. For applications executing multi-key lookups, utilizing Upstash pipelines (`pipeline.get()`) batches commands into a single network packet, reducing round-trip latency to under 15 milliseconds across global edge nodes.
For high-traffic production workloads exceeding 50 million monthly commands, upgrading to the Upstash Pro plan ($120/month cap) provides fixed, predictable billing and dedicated read replication with 99.99% service uptime SLAs.
Serverless Redis Multi-Region Replication & Latency Benchmarks
For globally deployed serverless applications running on Vercel Edge or Cloudflare Workers, Upstash Redis Global Database replicates data across multiple worldwide points of presence. Read queries execute against the geographically nearest edge cache with median latencies below 12 milliseconds, while writes automatically synchronize to primary regions via optimized TCP backbones.
Setting appropriate TTL keys on cached LLM completion responses prevents unnecessary token burn while keeping Redis storage within free or base plan limits.
Serverless Key-Value Economics: Upstash Redis vs AWS ElastiCache
Upstash Redis is a serverless, low-latency key-value database designed for modern serverless and edge compute runtimes. While traditional Redis hosting (AWS ElastiCache, Redis Cloud) charges for dedicated, continuously running EC2 instances ($15 to $120/month) that require connection pooling to prevent TCP socket exhaustion, Upstash connects over stateless HTTP/REST with automatic scale-to-zero economics.
Upstash bills strictly for metered operations: $0.20 per 100,000 commands, with 10,000 commands free every single day.
TCO Benchmark: Serverless Redis vs AWS ElastiCache
| Workload Profile | Monthly Commands | Upstash Redis | AWS ElastiCache (cache.t4g.micro) | Monthly Economic Delta |
|---|---|---|---|---|
| Hobby / Dev Environment | 100k commands / mo | $0.00 (Covered by free tier) | $12.50 / mo | 100% Free on Upstash |
| Production SaaS Rate Limiting | 5M commands / mo | $10.00 / mo | $25.00 / mo (Cluster) | 60% Savings |
| High-Traffic Session Store | 50M commands / mo | $100.00 / mo | $180.00 / mo (Multi-AZ) | 44% Savings |