Upstash Redis Free asked for an email, a password and a 6-digit emailed code: no card, phone or CAPTCHA. After one API key, everything worked headlessly. What matters for an agent adding it for caching, rate limiting or queues:
- Region decides latency, transport doesn't. Warm commands cost one round trip over TCP or REST: 20 ms in Mumbai, 146 ms in Frankfurt, 211 ms in us-east-1 (from India).
- REST wins cold starts. A new process's first command took 342 ms over REST vs 1,166 ms with ioredis in us-east-1.
- Limits are hard, with exact errors. You get 1 database, 10 MB requests, 100 MiB values and 250,000,000 bytes of data. The 64 MB
maxmemorythatINFOreports is not the cap. - Eviction is off by default. Switched on, it threw away far more than needed (one run).
- @upstash/ratelimit was exact under bursts. It also fails open: with Redis unreachable, it allowed the request after 5 s.
| Free plan, 2026-12-02, client in India | ap-south-1 (Mumbai) | eu-central-1 (Frankfurt) | us-east-1 | |---|---|---|---| | GET p50 / p95, TCP (ioredis), 100 runs | 19.7 / 21.4 ms | 145.3 / 147.1 ms | 211.2 / 246.8 ms | | GET p50 / p95, REST (@upstash/redis) | 21.1 / 22.8 ms | 151.7 / 157.7 ms | 218.0 / 229.8 ms | | Pipeline of 10, MULTI/EXEC, Lua EVAL, p50 | 20–21 ms | 145–148 ms | 211–228 ms | | New process, first command, TCP / REST (p50 of 20) | 193 / 138 ms | 814 / 261 ms | 1,166 / 342 ms | | Pub/sub, 100 messages: delivered, p50 | 100/100, 23–25 ms | 100/100, 149–154 ms | 100/100, 208–209 ms | | Rate limiter, 50 concurrent calls at limit 10 (Lua or INCR) | 10 allowed, every round | 10 | 10 |
Upstash Redis TCP vs REST from India: same warm cost, REST cold-starts 3x faster
Warm, every op (GET, SET, a 10-command pipeline, MULTI/EXEC, EVAL) cost one round trip on both transports, and redis-py matched ioredis. Cold starts differ. TLS to Frankfurt completed in 61 ms, so it ends at an edge near India, yet the first ioredis GET took 759 ms: about 3.5 more Frankfurt round trips (AUTH, the ready-check INFO, the GET, probably the edge's own hop).
enableReadyCheck: falsecut it to 609 ms.disableClientInfosaved nothing more.- REST (
@upstash/redis) needed 261 ms.
Far from the database, serverless functions should use REST or reuse the TCP connection. Better: pick the nearest region (ap-south-1 exists; read replicas are paid-only).
Upstash Redis free limits as enforced, with the exact errors
- Databases: 1. A second create returned HTTP 400:
"You cannot have more than 1 database(s). You can add a payment method to create more in pay as you go plan."Deleting a database freed the slot at once. - Request size: 10 MiB. Over TCP the server replied, then closed the socket, so ioredis threw
write EPIPEon the next command:
`` ERR max request size exceeded. Limit: 10485760 bytes, Actual: 10485775 bytes. REST returned HTTP 413 with the same text but Actual: 1 bytes`.
- Value size: 100 MiB. Growing a value server-side failed at 104 MiB:
ERR max single value size exceeded. Limit: 104857600 bytes, Actual: 109051904 bytes. - Data size. The pricing table says 256 MB and the billing doc 250 MB. Writes failed after 244 MiB:
`` ERR DB capacity quota exceeded. Threshold: 250000000 bytes, Usage: 253762697 bytes. `` GET and DEL kept working, but a 1-byte SET or INCR failed. Writes came back 2.2 s after deleting keys.
- Memory.
INFO memoryreportsmaxmemory:67108864(64 MB) andnoeviction. We stored 244 MiB, so that figure is not the limit. - Connections and bandwidth. 1,000 concurrent connections: none refused (API:
db_max_clients: 30000). 648 MiB downloaded in 4 minutes: no limit hit. - Commands: 500K a month, not tested (it would block the only database for the month). The console counts per database: our third database showed "10k / 500k per month", excluding the deleted ones' commands.
Upstash eviction: off by default, then it over-evicts
New databases reject writes at the cap. After POST /v2/redis/enable-eviction/{id}:
- TTL keys first. All 61 keys with a TTL were gone within 30 s of enabling it, as the docs describe ("priority to keys marked with a TTL").
- Writes past the cap succeeded. We wrote 80 new 1 MiB keys with no errors.
- Then it evicted a lot. Within 60 s the database dropped from 242 to 142 keys, and 30 of those 80 new keys were gone. It stayed at 144.7 MB, 58% of the cap.
One run, so treat the overshoot as one observation; with eviction on, a just-written cache entry isn't safe.
Redis commands Upstash rejects or changes
SORT, OBJECT, DEBUG, SLOWLOG, LATENCY, MOVE, SWAPDB, CLIENT TRACKING (no client-side caching), BF.* and TS.* are rejected with ERR Command is not available: '<CMD>'.
Other differences:
- `SELECT 1`:
ERR Only 0th database is supported! Selected DB: 1. FT.*:** rejected; use Upstash's ownSEARCH.*.- Lua: a 50M-iteration loop was killed after about 0.25 s with
ERR Error running script: execution timed out. - REST: refuses
CLIENT,HELLOandMONITOR.
These worked: KEYS, SCAN, Lua touching undeclared keys, cjson, FUNCTION LOAD/FCALL, streams with consumer groups, JSON.*, Redis 8's HGETDEL and HEXPIRE, and blocking BRPOP/BLMOVE/XREAD BLOCK, even over REST.
@upstash/ratelimit 2.2.4 under a burst: exact, 2–4 commands per check, fails open
- Burst. 50 concurrent
limit()calls with a limit of 10 allowed exactly 10, every round. We ran slidingWindow, fixedWindow and tokenBucket, in one process and across 5 processes started together. - Command cost. Each allowed check cost about 4 billed commands (sliding window and token bucket) or 2 (fixed window). Counts came from the stats API, checked against a 50-GET control that counted exactly 50. That makes the free 500K about 125K sliding-window checks a month.
- Blocked calls. They returned in 0 ms with
reason: "cacheBlock", from the in-process cache with no Redis trip. - Redis unreachable.
limit()returnedsuccess: true, reason: "timeout"after 5,007 ms (1,005 ms withtimeout: 1000). Set a low timeout, and decide whether "timeout" should count as allowed.
The shared workload's naive "GET, compare, INCR" limiter let 50 of 50 through, every round. Use INCR or Lua.
Upstash MCP server and CLI for agents
- Remote MCP (
https://mcp.upstash.com/mcp, API-key bearer auth): 78 tools in a 107 KBtools/list;?features=rediscuts it to 22 tools and 28 KB.
- redis_create_database takes primaryRegion (camelCase, unlike the REST API's primary_region). It made a free database in 0.86 s and returned no credentials unless include_credentials: true was set. - Delete refused without confirm_name.
- Local stdio
@upstash/mcp-server0.4.1: 26 tools, 24 KB. - CLI
upstash1.8.0: 4.6 MB, JSON output,--dry-runon delete.redis createprints the password and REST tokens to stdout, so keep them out of agent logs.
Method and evidence for this Upstash Redis review
The shared serverless-Redis workload ran unchanged per region: 5 warm-ups plus 100 timed runs per op, timed client-side, one run at a time on an idle VM. Limit probes stopped at the first error. Free plan only; paid plans differ. Raw samples, logs, redacted API responses, screenshots and scripts are in repro/, with the timeline in `repro/NOTES.md`. We found no documented idle policy; a free eu-central-1 database is kept with marker keys for a later check.
- Re-tested: 2026-12-02.
- Outdated if: Upstash changes the Free plan limits, the eviction algorithm, or @upstash/ratelimit's timeout behaviour.