Console

Serverless
Data
for Cloudflare Workers

Serverless Redis and Kafka with per request pricing.

Global Replication together with REST API makes Upstash a perfect database for Cloudflare Workers.

Start for free in 30 seconds
Serverless Data for Cloudflare Workers

Globally Fast

Upstash replicates data worldwide for global low latency.

REST API

Access your Redis from edge functions with the Upstash REST API.

Redis and Kafka

Serverless Redis and Kafka with per request pricing.

Global Store for Edge Functions

Add Redis to your Cloudflare Workers function in seconds

Using REST Client
1
2addEventListener("fetch", event => {
3  event.respondWith(handleRequest(event.request))
4})
5
6async function handleRequest(request) {
7let res = await fetch("https://us1-cool-tiger-31312.upstash.io/incr/counter\?_token\=AXpWASQgN2QxMWRlYzdfgjdmNWM1MmE1ZDE3NTMwMzYzYjAzYWI=")
8text = await res.text()
9return new Response("view count:" +JSON.parse(text).result)
10}
11  

Community Resources

Check our docs and examples to learn more


Cloudflare Workers with Redis
Getting Started Guide


Analytics at Edge
with Redis and CF Workers


Build IP Allow List
Using Upstash Redis and
Edge Functions