
12/8/2021 · Yo'av Moshe, Andrew Galloni
What this post added
This post details the technical decision to use Cloudflare Workers for Zaraz, a service that runs third-party tool code at the edge. It explains the challenges of traditional third-party script execution (performance impact, security risks, data privacy concerns) and how Workers addresses these by enabling JavaScript execution close to the user. The post highlights the requirements for Zaraz's infrastructure (run JavaScript, secure, programmable, fast, globally distributed) and why Workers was chosen over other serverless platforms. It also includes a basic example of a Cloudflare Worker handling a fetch event to return dynamic JavaScript.