
Upstash Redis Has a Free API — Serverless Redis with HTTP and REST Interface
What if you could use Redis from Cloudflare Workers, Vercel Edge, or any serverless function — without TCP connections? Upstash Redis is a serverless Redis service with an HTTP/REST API. It works everywhere, including environments that do not support TCP. Why Upstash Redis HTTP-based — no TCP connections, works in edge/serverless Pay per request — $0 when idle, no fixed costs Global replication — multi-region read replicas Redis compatible — all Redis commands via REST or SDK Durable — data persists, unlike in-memory Redis Free tier — 10K commands/day, 256MB storage Quick Start npm install @upstash/redis import { Redis } from " @upstash/redis " ; const redis = Redis . fromEnv (); // Reads UPSTASH_REDIS_REST_URL and TOKEN // All standard Redis operations await redis . set ( " user:123 " , { name : " Alice " , plan : " pro " }); const user = await redis . get ( " user:123 " ); // Rate limiting const requests = await redis . incr ( " ratelimit:ip:1.2.3.4 " ); await redis . expire ( " rate
Continue reading on Dev.to Webdev
Opens in a new tab



