Backend
Services, data access and APIs that last.
How a backend service is built and run: what happens to a request from the network to the database and back, HTTP from the server's side, handling many requests at once, structuring a service, middleware, validation and errors, configuration and secrets, database access, schema migrations, transactions, caching, authentication and authorization, background jobs, webhooks and events, real-time connections, file uploads, rate limiting, timeouts and retries, logs and health checks, and packaging and deploying a service. Language-neutral: Node.js, Python, Java and Kotlin, Go, C# and .NET, Ruby and PHP side by side. By the end you can design, build and operate a service that stays correct, fast and safe under real traffic.
- 7
- chapters
- 22
- modules
- ~8h
- of learning
- 22
- live now
Take modules in any order. The route suggests one that builds up naturally.
has a live module in progress complete
Take a look inside
The big picture, before the details
From one request to a production service: foundations, building a service, data, identity, work beyond request and response, and running in production. Watch the tour, or click any part.
Foundations: what a backend does, HTTP from the server's side, and handling many requests at once (modules 1–3).
A taste of module 10: two customers buy the last chai at the same instant. Pick a strategy and see whether it gets sold twice.
Two orders for one chai: oversold. Each request checked, then wrote, and they overlapped.
Foundations
What a backend does, and how it handles requests.
3 modules · 65 min
Building a service
Structure, pipeline, errors and configuration.
4 modules · 80 min
Core
Structuring a service
Handlers, services and repositories.
Core
Middleware and the request pipeline
Every request passes through.
Core
Validation and error handling
Trust nothing, explain clearly.
Core
Configuration and secrets
Same code, different environments.
Data
Talking to databases safely and quickly.
4 modules · 90 min
Core
Talking to a database
Pools, queries and the N+1 trap.
Core
Schema migrations
Changing the database without downtime.
Core
Transactions in your code
All or nothing.
Core
Caching in the backend
Faster, until it's wrong.
Identity
Who you are and what you may do.
2 modules · 45 min
Beyond request and response
Jobs, events, real time and files.
4 modules · 85 min
Core
Background jobs and queues
Do the slow work later.
Applied
Webhooks and events
Telling other systems what happened.
Applied
Real-time connections
Push instead of poll.
Applied
Files and uploads
Big bytes, safely.
Running in production
Staying up under real traffic.
4 modules · 85 min
Core
Rate limiting and backpressure
Saying no politely.
Core
Timeouts, retries and circuit breakers
When a dependency is slow.
Core
Logs, health checks and shutdown
Seeing and steering a running service.
Applied
Packaging and deploying a service
From code to a running process.
Capstone
Put it all together.
1 module · 35 min