Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Writing an API at the Edge with Workers and Cloud Firestore

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Ashley M Lewis
Word Count
2,226
Language
English
Hacker News Points
34
Summary

The text discusses the development of a system for reserving custom subdomains on the upcoming platform, Workers.dev. This involves creating two distinct Worker scripts to handle email verification and subdomain reservation processes. Google Cloud Platform's Firestore is used as the database due to its immediate consistency feature which prevents double-reservations. The text also explains how JWTs are generated for authentication requests to the Firestore API, and how these are stored in KV (Cloudflare’s Key-Value data store). Lastly, it mentions that users can reserve a workers.dev subdomain even if they don't have a domain on Cloudflare.