Cloudflare Workers database integration with Upstash
Aug 2, 2023Joaquin Gimenez, Shaun Persad

Summary
This post introduces the integration of Cloudflare Workers with Upstash databases (Redis, Kafka, QStash) via an OAuth2 flow. It demonstrates how to set up and use Upstash Redis within a Worker to fetch localized greetings based on the 'cf-ipcountry' header. It also suggests performance improvements using Workers Smart Placement or Upstash Global Database.
More from the Data Infrastructure & Analytics trail
- Introducing Cloudflare Basin: an open, serverless data platform, now generally available
- Introducing the Billable Usage API: programmatic cost visibility for Cloudflare
- Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402
- How we built Cloudflare's data platform and an AI agent on top of it
- Iran's Internet is partially restored, Cloudflare Radar data shows