Deploy Upstash Redis Adaptor

Self-hosted Upstash-compatible Redis HTTP API for edge environments

Deploy Upstash Redis Adaptor

Just deployed

/data

Just deployed

Deploy and Host Upstash Redis Adaptor on Railway

Upstash Redis Adaptor is a lightweight HTTP wrapper that exposes any Redis server as an Upstash-compatible REST API. It enables you to use the @upstash/redis SDK with your own self-hosted Redis instance—perfect for edge environments where TCP connections aren't available.

About Hosting Upstash Redis Adaptor

Deploying Upstash Redis Adaptor involves running a small Hono + Bun server that translates HTTP requests into Redis TCP commands. The adaptor connects to your Redis instance and exposes endpoints for single commands, pipelines, and transactions—all compatible with Upstash's REST API format. This template automatically provisions both a Redis database and the adaptor service, with environment variables pre-configured. Once deployed, simply point your @upstash/redis SDK to your adaptor URL and start using Redis over HTTP.

Common Use Cases

  • Edge Rate Limiting — Run rate limiting in Vercel Edge Functions, Cloudflare Workers, or Next.js Middleware where TCP isn't available
  • Cost Optimization — Use your own Redis instead of paying Upstash per-request pricing at scale
  • Self-Hosted Compliance — Keep data on your own infrastructure for regulatory or latency requirements

Dependencies for Upstash Redis Adaptor Hosting

  • Redis — Any Redis-compatible server (included in this template)
  • Bun Runtime — Fast JavaScript runtime for the HTTP server

Deployment Dependencies

  • @upstash/redis SDK — Official client library (works unchanged with this adaptor)
  • @upstash/ratelimit — Rate limiting library (fully compatible)
  • Hono — Lightweight web framework powering the adaptor

Implementation Details

import { Redis } from '@upstash/redis';

// Point to your Railway-deployed adaptor
const redis = new Redis({
  url: process.env.KV_REST_API_URL,   // Your adaptor URL
  token: process.env.KV_REST_API_TOKEN, // Your SR_TOKEN
});

// Works exactly like Upstash!
await redis.set('foo', 'bar');
const value = await redis.get('foo');

Why Deploy Upstash Redis Adaptor on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Upstash Redis Adaptor on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Built by Blink.new

This adaptor was created by the team at Blink.new — an AI-powered fullstack app builder that lets you create production-ready web and mobile applications just by describing what you want. Blink handles the design, database, backend, authentication, and hosting automatically. Build and deploy your next project in minutes at blink.new.


Template Content

More templates in this category

View Template
Postgres Backup to Cloudflare R2
Auto back up PostgreSQL databases to Cloudflare R2 with optional encryption

View Template
ReadySet
A lightweight caching engine for Postgres

View Template
Simple S3
Deploy a S3-compatible storage service with a pre-named bucket.