Upstash

Upstash

Serverless Redis and Kafka for edge applications

Features

  • Serverless Redis with REST API and per-request pricing
  • Serverless Kafka for event streaming
  • QStash for serverless message queues
  • Global replication for low-latency access

Pros

  • True serverless with pay-per-request pricing
  • REST API works in edge runtimes (no TCP needed)
  • Excellent integration with Vercel, Cloudflare Workers

Cons

  • Higher per-request cost than self-hosted Redis at scale
  • REST API adds latency compared to native Redis protocol
  • Feature subset of full Redis

Overview

Upstash provides serverless data services designed for modern edge applications. Its serverless Redis offers a REST API that works in environments without TCP support (like Cloudflare Workers and Vercel Edge Functions), with per-request pricing and global replication.

Beyond Redis, Upstash offers QStash (a serverless message queue for HTTP-based workflows), serverless Kafka for event streaming, and a vector database for AI applications. All services use a pay-per-request model with no idle costs.

When to Use

Upstash is ideal for edge applications that need caching or rate limiting, for serverless environments where traditional Redis connections aren’t available, or when you want pay-per-request pricing for intermittent workloads.

Getting Started

npm install @upstash/redis
import { Redis } from "@upstash/redis";

const redis = new Redis({
  url: "https://your-endpoint.upstash.io",
  token: "your-token",
});

await redis.set("user:1", { name: "Alice" });
const user = await redis.get("user:1");