Edge Computing with Cloudflare Workers
Using One Cron Parser Everywhere With Rust and Saffron

Using One Cron Parser Everywhere With Rust and Saffron

12/25/2020 · Aaron Loyd

What this post added

This post details the development of a unified cron parser named 'saffron' written in Rust to address inconsistencies across different language implementations (JavaScript, Go) used in the Cron Triggers feature for Cloudflare Workers. The challenge stemmed from the lack of standardization in cron expression extensions, leading to validation issues and poor user experience. By creating a single Rust-based parser with a WASM entry point, Cloudflare achieved consistent parsing and validation across its backend, API, and frontend, improving developer experience and reliability.

Read the original post ↗