/plushcap/analysis/cloudflare/cloudflare-workers-database-integration-with-upstash

Cloudflare Workers database integration with Upstash

What's this blog post about?

On August 2nd, 2023 at 2:00 PM, Joaquin Gimenez and Shaun Persad announced that during Developer Week they revealed new database integrations on Workers for seamless connection with popular databases. The integration process involves selecting a provider, authorizing through OAuth2 flow, and storing the correct configuration as encrypted environment variables to the user's worker. Today, they have partnered with Upstash to expand their catalog of integrations by offering three new options: Upstash Redis, Upstash Kafka, and Upstash QStash. This collaboration provides customers with a broader range of capabilities on Workers to meet specific requirements. The setup process for adding the Upstash Redis integration is demonstrated in this text, which includes granting permissions, connecting via OAuth2 flow, selecting a database, and generating credentials. An implementation example follows that showcases how users can utilize these integrations with Cloudflare's Workers by customizing responses based on country-specific data retrieved from Upstash Redis instances. The text concludes with information about performance improvements for write-heavy use cases and the availability of all three new database integration options (Upstash Redis, Kafka, and QStash) to all users.

Company
Cloudflare

Date published
Aug. 2, 2023

Author(s)
Joaquin Gimenez, Shaun Persad

Word count
464

Language
English

Hacker News points
5


By Matt Makai. 2021-2024.