Free course

Cloudflare Workers Course

Build and operate a Worker application with Hono, static assets, bindings, D1, KV, R2, Queues, scheduled work, Durable Objects, tests, logs, and safe deployments.

5 modules · 25 lessons · No signup

Prerequisites: JavaScript, TypeScript, HTTP and Web APIs

~~~

Your progress

of lessons completed.

Course completed.

What you'll learn

Build, test, deploy, observe, and recover Link Vault, a full Worker application using the right Cloudflare capability for each job.

Take this course offline

Subscribe to my newsletter to get every free book and course in PDF and EPUB format.

Get the downloads

Course contents

  1. Workers foundations

    Understand isolates, create the project, handle requests, and use Wrangler deliberately.

    1. Understand the Workers runtime
    2. Create the Link Vault project
    3. Handle the first request
    4. Use Wrangler development tools
    5. Check your understanding: workers foundations
  2. Routing and configuration

    Reuse Hono, configure typed bindings, separate secrets, and serve static assets.

    1. Reuse Hono routes
    2. Configure bindings and types
    3. Separate variables and secrets
    4. Serve static assets
    5. Check your understanding: routing and configuration
  3. Storage bindings

    Store relational data in D1, cache with KV, export to R2, and choose storage well.

    1. Store links in D1
    2. Cache read-heavy data in KV
    3. Store exports in R2
    4. Choose the right storage product
    5. Check your understanding: storage bindings
  4. State and background work

    Use waitUntil, Queues, Cron Triggers, and Durable Objects for the jobs they fit.

    1. Defer small work with waitUntil
    2. Process exports with Queues
    3. Run scheduled maintenance
    4. Coordinate with Durable Objects
    5. Check your understanding: state and background work
  5. Production and deployment

    Test the runtime, add observability, deploy compatibly, roll back, and review production.

    1. Test with the Workers runtime
    2. Add observability
    3. Deploy, migrate, and roll back
    4. Complete the production review
    5. Check your understanding: production and deployment