Free course

Cloudflare Course

Master the Cloudflare platform: DNS, caching, TLS, and security foundations, then Pages, KV, R2, Hyperdrive, Durable Objects, Queues, Workflows, Turnstile, Tunnel, and AI.

45 modules · 135 lessons · No signup

Prerequisites: HTTP, DNS and Git

~~~

Your progress

of lessons completed.

Course completed.

What you'll learn

Understand how Cloudflare works end to end, then build with every major platform product: deploy sites, store values and objects, reach SQL databases, coordinate state, run background work, protect forms, publish private services, and ship AI features.

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. The Cloudflare network

    Understand zones, authoritative DNS, proxy status, anycast, reverse proxying, and origins.

    1. Understand zones, DNS, and proxy status
    2. Trace the reverse proxy path
    3. Check your understanding: the cloudflare network
  2. Requests, TLS, and cache

    Trace HTTPS requests, secure origin connections, read cache status, and control freshness.

    1. Separate the two TLS connections
    2. Read and control cache behavior
    3. Check your understanding: requests, tls, and cache
  3. Security foundations

    Use DDoS protection, WAF rules, rate limits, bot controls, and origin protection deliberately.

    1. Layer Cloudflare security controls
    2. Protect the origin path
    3. Check your understanding: security foundations
  4. Developer platform map

    Choose among Workers, Pages, bindings, storage, state, background work, networking, and AI.

    1. Map compute and data products
    2. Map background, network, and AI products
    3. Check your understanding: developer platform map
  5. Accounts, operations, and cost

    Separate scopes, tokens, environments, analytics, limits, billing, rollback, and ownership.

    1. Separate accounts, zones, and credentials
    2. Operate from evidence and current limits
    3. Check your understanding: accounts, operations, and cost
  6. Pages foundations

    Choose Pages, prepare build output, and understand projects, deployments, and environments.

    1. Choose Pages for a site
    2. Separate production and preview deployments
    3. Check your understanding: pages foundations
  7. Git and direct deployments

    Use Git integration or Direct Upload, preview changes, and control production releases.

    1. Choose Git integration or Direct Upload
    2. Release and roll back deliberately
    3. Check your understanding: git and direct deployments
  8. Domains, redirects, and headers

    Attach domains, configure static routing, and verify cache and security headers.

    1. Attach and verify a custom domain
    2. Configure static redirects and headers
    3. Check your understanding: domains, redirects, and headers
  9. Functions, bindings, and operations

    Add request handlers, inject bindings and secrets, observe failures, and recover safely.

    1. Add one Pages Function
    2. Bind resources and debug production
    3. Check your understanding: functions, bindings, and operations
  10. KV foundations

    Understand namespaces, bindings, keys, values, metadata, global reads, and central writes.

    1. Understand how KV reads scale
    2. Create and bind a namespace
    3. Check your understanding: kv foundations
  11. Read, write, and expire values

    Use the binding API, serialization, expiration, bulk work, and predictable key design.

    1. Read and write typed values
    2. Use expiration and listing carefully
    3. Check your understanding: read, write, and expire values
  12. Consistency and patterns

    Design caches, configuration, preferences, and rate helpers around eventual consistency.

    1. Design for eventual consistency
    2. Choose KV patterns that fit
    3. Check your understanding: consistency and patterns
  13. Test, observe, and operate KV

    Separate local and remote data, test stale paths, monitor usage, and recover safely.

    1. Test the missing and stale paths
    2. Monitor usage and recover
    3. Check your understanding: test, observe, and operate kv
  14. R2 foundations

    Understand buckets, objects, keys, metadata, Workers bindings, S3 compatibility, and egress.

    1. Model buckets, objects, and keys
    2. Choose Workers API or S3 API
    3. Check your understanding: r2 foundations
  15. Read, write, and stream objects

    Put, get, head, list, delete, conditionally update, and stream without unsafe buffering.

    1. Put, get, and authorize objects
    2. Stream large bodies and use conditions
    3. Check your understanding: read, write, and stream objects
  16. Uploads and delivery

    Design browser uploads, multipart work, CORS, custom domains, caching, and private access.

    1. Design browser and multipart uploads
    2. Serve public and private objects
    3. Check your understanding: uploads and delivery
  17. Lifecycle, security, and operations

    Control credentials, object ownership, retention, lifecycle rules, replication, and recovery.

    1. Apply retention and lifecycle rules
    2. Operate and recover R2
    3. Check your understanding: lifecycle, security, and operations
  18. Hyperdrive foundations

    Understand connection setup cost, distributed pooling, supported databases, and fit.

    1. Understand what Hyperdrive accelerates
    2. Choose Hyperdrive or D1
    3. Check your understanding: hyperdrive foundations
  19. Connect and query

    Create a configuration, bind it, use a driver, and separate local and remote connections.

    1. Create and bind a Hyperdrive configuration
    2. Open and close a driver per request
    3. Check your understanding: connect and query
  20. Cache and consistency

    Control query caching, read-after-write paths, transactions, and connection lifecycle.

    1. Use query caching only where stale is safe
    2. Respect transaction pooling boundaries
    3. Check your understanding: cache and consistency
  21. Secure, test, and operate

    Protect credentials, use private connectivity, tune pools, observe queries, and recover.

    1. Secure origin database access
    2. Measure pools, queries, and failures
    3. Check your understanding: secure, test, and operate
  22. Durable Object foundations

    Choose a coordination atom, route deterministic IDs, understand placement, and avoid global bottlenecks.

    1. Choose a coordination atom
    2. Route deterministically to an instance
    3. Check your understanding: durable object foundations
  23. RPC and SQLite storage

    Create typed methods, initialize schemas, query SQLite, and separate durable from memory state.

    1. Configure SQLite-backed objects
    2. Use typed RPC and durable storage
    3. Check your understanding: rpc and sqlite storage
  24. Concurrency and correctness

    Use gates, transactions, idempotency, versioning, and external I/O without races.

    1. Understand storage gates and transactions
    2. Handle external I/O and retries
    3. Check your understanding: concurrency and correctness
  25. Alarms and WebSockets

    Schedule per-entity work and maintain real-time clients through hibernation.

    1. Schedule per-object work with alarms
    2. Use hibernating WebSockets
    3. Check your understanding: alarms and websockets
  26. Test, migrate, and operate

    Test instances and alarms, add migrations, observe failures, clean up, and evolve classes.

    1. Test object boundaries and lifecycle
    2. Evolve and clean up objects
    3. Check your understanding: test, migrate, and operate
  27. Asynchronous foundations

    Separate request latency, background work, messages, jobs, and multi-step processes.

    1. Move work off the request path
    2. Define message and job contracts
    3. Check your understanding: asynchronous foundations
  28. Queue producers and consumers

    Send messages, batch consumption, acknowledge results, retry failures, and delay work.

    1. Send and consume messages
    2. Tune batches, delay, and concurrency
    3. Check your understanding: queue producers and consumers
  29. Delivery and failure

    Design for at-least-once delivery, idempotency, dead letters, backpressure, and replay.

    1. Design for at-least-once delivery
    2. Use dead letters and controlled replay
    3. Check your understanding: delivery and failure
  30. Workflow steps and waits

    Persist step results, retry narrowly, sleep, wait for events, and inspect instances.

    1. Split work into durable steps
    2. Sleep and wait without holding compute
    3. Check your understanding: workflow steps and waits
  31. Compose, test, and operate

    Combine Queues and Workflows, test failure paths, observe progress, cancel, and recover.

    1. Compose Queues and Workflows
    2. Test, observe, and recover async work
    3. Check your understanding: compose, test, and operate
  32. Turnstile foundations

    Understand the challenge flow, widgets, site keys, secret keys, tokens, and boundaries.

    1. Understand the Turnstile flow
    2. Separate site and secret keys
    3. Check your understanding: turnstile foundations
  33. Client integration

    Render implicit and explicit widgets, handle lifecycle events, accessibility, and forms.

    1. Render the widget deliberately
    2. Handle success, expiry, errors, and accessibility
    3. Check your understanding: client integration
  34. Server validation

    Call Siteverify, fail closed, verify context, prevent replay, and keep secrets private.

    1. Call Siteverify and fail closed
    2. Verify context and prevent replay
    3. Check your understanding: server validation
  35. Test, monitor, and operate

    Use test keys, cover failure paths, inspect analytics, rotate keys, and tune placement.

    1. Use test keys and cover failures
    2. Monitor and rotate Turnstile
    3. Check your understanding: test, monitor, and operate
  36. Tunnel foundations

    Understand connectors, outbound connections, origins, public hostnames, routes, and trust.

    1. Understand the outbound connector model
    2. Separate public hostnames and private routes
    3. Check your understanding: tunnel foundations
  37. Publish a service

    Create a tunnel, install cloudflared, map a hostname, protect the origin, and verify TLS.

    1. Create and run a remotely managed tunnel
    2. Map a hostname to a local service
    3. Check your understanding: publish a service
  38. Private network access

    Advertise CIDRs, enroll clients, add identity policy, and test route and DNS behavior.

    1. Advertise a private network route
    2. Enroll clients and apply identity policy
    3. Check your understanding: private network access
  39. High availability and operations

    Add replicas, monitor connectors, update safely, rotate credentials, and recover.

    1. Add replicas without creating a new route
    2. Monitor, update, rotate, and recover
    3. Check your understanding: high availability and operations
  40. Workers AI foundations

    Choose models, bind AI, run inference, stream results, estimate cost, and handle failures.

    1. Choose and run a Workers AI model
    2. Stream and handle model failures
    3. Check your understanding: workers ai foundations
  41. Embeddings and Vectorize

    Chunk content, create compatible embeddings, index metadata, query, filter, and evaluate retrieval.

    1. Create compatible embeddings and indexes
    2. Query, filter, and evaluate retrieval
    3. Check your understanding: embeddings and vectorize
  42. AI Gateway

    Route providers, observe requests, control caching and rate limits, redact data, and fail over.

    1. Put a gateway in the model path
    2. Control cache, rate, data, and fallback
    3. Check your understanding: ai gateway
  43. Agents SDK foundations

    Create per-user agents with SQLite state, callable methods, routing, and WebSocket clients.

    1. Create one agent instance per user or session
    2. Sync state and call approved methods
    3. Check your understanding: agents sdk foundations
  44. Chat, tools, and approvals

    Stream chat, persist messages, validate tools, require approval, and defend trust boundaries.

    1. Build persistent streaming chat
    2. Treat tools as authorized actions
    3. Check your understanding: chat, tools, and approvals
  45. Evaluate, secure, and operate

    Test retrieval and tools, constrain data, inspect traces, control cost, recover, and improve.

    1. Evaluate the complete AI system
    2. Protect data, cost, and operations
    3. Check your understanding: evaluate, secure, and operate