Serverless platforms run your code on demand, scale automatically and charge only for what is used, with no servers to patch. They suit APIs, webhooks, scheduled jobs and many AI-powered features. This course compares two leading approaches: AWS Lambda, which connects deeply to the rest of AWS, and Cloudflare Workers, which run at the edge close to users. You will build with both and learn which fits which job.
What you'll learn
- What serverless means in practice, and where it is a poor fit
- AWS Lambda fundamentals: handlers, runtimes, memory, timeouts and permissions
- Triggering Lambda from API Gateway, function URLs, S3 events, queues and schedules
- Cloudflare Workers: the request/response model, routes and the Wrangler CLI
- Edge storage on Cloudflare: KV, D1, R2 and Durable Objects
- Queues and asynchronous processing on both platforms
- Cold starts, concurrency and performance tuning
- Configuration, secrets and environment management
- Local development, testing and deployment with infrastructure as code
- Logging, tracing and keeping costs predictable
Who it's for
- Back-end and full-stack developers building APIs and integrations
- Teams adding webhooks, scheduled tasks or AI features without running more servers
- Developers choosing between edge and regional serverless platforms
Prerequisites
- Comfortable with JavaScript or TypeScript (see Modern JavaScript Essentials); some Lambda examples also show Python
- A basic understanding of HTTP and REST APIs
- Familiarity with AWS core services helps (see AWS Cloud Foundations)
Outcomes
By the end of this course you will be able to:
- Build and deploy an HTTP API on both AWS Lambda and Cloudflare Workers.
- Process events and background jobs reliably with queues and retries.
- Choose storage that fits each workload on each platform.
- Diagnose cold starts and performance issues, and estimate costs before launch.
- Decide when serverless, containers or a traditional server is the better choice.
Course outline
| Module | Topic |
|---|---|
| 1 | Serverless concepts and trade-offs |
| 2 | AWS Lambda fundamentals and IAM permissions |
| 3 | HTTP APIs with API Gateway and function URLs |
| 4 | Event sources: S3, queues and schedules |
| 5 | Cloudflare Workers fundamentals and Wrangler |
| 6 | Edge data: KV, D1, R2 and Durable Objects |
| 7 | Queues, retries and idempotency |
| 8 | Cold starts, concurrency and performance |
| 9 | Secrets, configuration and deployment pipelines |
| 10 | Observability and debugging serverless code |
| 11 | Cost modelling and platform choice |
| 12 | Project: a webhook-driven API on both platforms |
FAQ
Which platform should I choose?
It depends on your workload. Workers suit low-latency request handling close to users; Lambda suits workloads that rely heavily on other AWS services. Many teams use both.
Can I run AI workloads serverlessly?
Yes for calling model APIs, streaming responses and processing jobs. We cover timeouts and streaming patterns that matter for AI features.
Do I need a paid plan?
Both providers offer free allowances, and the labs are kept small so they can usually run within them. We show you how to set spending alerts first.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.