cloudflare/workerd
10 articles
Prerequisites
- ›Familiarity with C++ at an introductory level
- ›Basic understanding of JavaScript runtimes (Node.js or Deno is sufficient)
- ›Awareness of what Cloudflare Workers is as a product
Navigating the workerd Codebase: Architecture Overview and Directory Map
A high-level orientation to workerd's architecture — the layered design from CLI to V8, the annotated directory structure, and the three core design principles.
Placeholder Article
Placeholder article — no content was provided in the source input.
Architecture Overview: Navigating the workerd Codebase
A high-level tour of workerd's layered architecture, directory structure, and capability-based configuration model.
Navigating the workerd Codebase: Architecture and Directory Map
A high-level orientation to the workerd project — the open-source runtime behind Cloudflare Workers.
From main() to Response: The Complete Request Lifecycle in workerd
A detailed trace of the entire path from CLI invocation through server boot, socket binding, and the handling of a single HTTP request.
Server Boot and Request Lifecycle: From Socket to JavaScript
Traces the complete lifecycle of an HTTP request through workerd — from CLI startup through service creation to JavaScript execution.
From `workerd serve` to Accepting Requests: The Boot and Server Lifecycle
A deep dive into workerd's startup sequence — from CLI invocation through config parsing, V8 init, service graph construction, and the HTTP accept loop.
Handling a Request: IoContext, WorkerEntrypoint, and Cross-Thread Ownership
Traces the complete lifecycle of an HTTP request from socket acceptance through JavaScript execution and response generation.
JSG: The C++↔V8 Binding Layer That Powers the Workers API
A deep dive into JSG, workerd's macro-based C++↔V8 binding system that turns C++ classes into JavaScript objects.
Durable Objects Storage and the Compatibility Date System
Deep dives into Durable Objects' gate-based consistency model and the compatibility flag system that guarantees backwards compatibility.