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

© 2023 Upstash, Inc. Based in California.

* Redis is a trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by Upstash is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and Upstash.

** Cloudflare, the Cloudflare logo, and Cloudflare Workers are trademarks and/or registered trademarks of Cloudflare, Inc. in the United States and other jurisdictions.