DEV Community

Alex Spinov
Alex Spinov

Posted on

Upstash Has a Free Serverless Redis — Cache and Rate-Limit Without Managing Servers

Upstash is a serverless Redis with per-request pricing — perfect for edge and serverless apps.

What You Get for Free (Free Tier)

  • 10,000 commands/day — enough for development and small apps
  • 256MB storage — generous for caching and sessions
  • Global replication — multi-region for low latency
  • REST API — use Redis from edge functions (no TCP needed)
  • QStash — serverless message queue (500 messages/day free)
  • Kafka — serverless Kafka (10,000 messages/day free)
  • Rate limiting SDK — built-in rate limiter
  • @upstash/ratelimit — npm package for Next.js/Vercel

Quick Start

import { Redis } from '@upstash/redis'

const redis = Redis.fromEnv()

// Cache a value
await redis.set('user:123', { name: 'Alice' }, { ex: 3600 })

// Rate limiting in 3 lines
import { Ratelimit } from '@upstash/ratelimit'
const ratelimit = new Ratelimit({
  redis,
  limiter: Ratelimit.slidingWindow(10, '10 s'),
})
const { success } = await ratelimit.limit('user:123')
Enter fullscreen mode Exit fullscreen mode

Why Developers Switch from Self-Hosted Redis

Managing Redis servers is ops overhead you don't need:

  • No server — no Redis installation, no maintenance
  • REST API — works from Cloudflare Workers (TCP not allowed)
  • Pay per request — $0 when idle, not $15/month for a server
  • Global — data replicated across regions automatically

A SaaS startup paid $50/month for a Redis server that handled 5K requests/day. After Upstash: $2/month for the same traffic, zero ops.

Need Custom Data Solutions?

I build production-grade scrapers and data pipelines for startups, agencies, and research teams.

Browse 88+ ready-made scrapers on Apify → — Reddit, HN, LinkedIn, Google, Amazon, and more.

Custom project? Email me: spinov001@gmail.com — fast turnaround, fair pricing.

Top comments (0)