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

Building a scheduling system with Workers and Durable Objects

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Adam Janiš
Word Count
1,430
Language
English
Hacker News Points
3
Summary

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.