Building a scheduling system with Workers and Durable Objects
The text discusses the development of a scalable service for scheduling HTTP requests on specific schedules or as one-off at a specific time using Cloudflare Workers, Durable Objects, and Alarms. It provides an overview of the application stack, including Wrangler, Cloudflare Workers, and Cloudflare Durable Objects. The text also outlines the components of the application, such as the scheduling system API, unique Durable Object per scheduled request with storage and alarm, and the role of the global network in storing and replicating data. Additionally, it provides step-by-step instructions on how to initialize a new Workers project, prepare TypeScript types, create a Durable Object class & alarm, configure Wrangler, and start a local development server for testing purposes. Finally, it explains the process of publishing the application to the network using wrangler publish command.
Company
Cloudflare
Date published
Aug. 5, 2022
Author(s)
Adam Janiš
Word count
1430
Language
English
Hacker News points
3