Pebellslearn by building
RoadmapsMatrixCoursesSandboxSign in

Course details

Cloudflare

Learn how Cloudflare runs your code close to every user, and how to pick the right storage for each job. You will build one link shortener step by step, from a first Worker to durable counters and background queues.

Ready to learn5 sections · 22 lessons
Start learning

Course curriculum

Workers and Workers KV5 lessons

How the Workers runtime runs your code in isolates at the edge, how a Worker turns a request into a response, what happens before and after it replies, how bindings connect it to everything else, and how to use Workers KV for fast global reads.

  1. The Workers Runtime — Code at the Edge12 min
  2. Request In, Response Out12 min
  3. The Workers Lifecycle — Respond First, Finish Later12 min
  4. Bindings — How a Worker Reaches Everything Else12 min
  5. Workers KV — Fast Reads, Patient Writes15 min
R2 Storage and the Developer Toolchain5 lessons

Set up a real workflow with Wrangler and Miniflare, organise routes with Hono, then store and serve files in R2 — from small uploads to multi-gigabyte videos — and let lifecycle rules keep the bucket tidy.

  1. Wrangler and Miniflare — Build Locally, Ship Globally12 min
  2. Routing with Hono — Taming the if-Chain12 min
  3. R2 — Buckets of Objects15 min
  4. Large Files — Stream, Split or Sign15 min
  5. Bucket Lifecycle — Let the Bucket Tidy Itself12 min
D1 — Serverless SQL4 lessons

Query D1 safely with prepared statements, change its schema through numbered migrations, keep queries fast with indexes and batches, and add type safety with Drizzle or Prisma.

  1. D1 — A SQL Database Your Worker Can Call12 min
  2. Schema and Migrations — Change the Database in Numbered Steps12 min
  3. Query Optimization — Read Fewer Rows, Make Fewer Trips15 min
  4. Drizzle and Prisma — Typed Queries on Top of D112 min
Durable Objects4 lessons

Give each piece of shared state a single named object, use it to coordinate many clients, persist its data in private storage, and keep multi-step changes safe with transactions.

  1. Durable Objects — One Name, One Place, One Thread15 min
  2. Coordination — A Meeting Point for Many Clients15 min
  3. Persistence — Memory Is a Cache, Storage Is the Truth12 min
  4. Transactional Operations — All of It or None of It15 min
Queues4 lessons

Send messages from any Worker and consume them in batches, turn slow extras into background jobs, pace calls to rate-limited services, and catch messages that keep failing in a dead letter queue.

  1. Queues — Hand Off Now, Process Later15 min
  2. Background Jobs — Slow Work Off the Request Path12 min
  3. Rate Limiting — Let the Queue Set the Pace15 min
  4. Dead Letter Queues — Where Failed Messages Go to Be Studied12 min