Backend

Intermediate · Roadmap · 31 lessons · 5 groups

The practitioner concerns of writing the service behind the API, scoped to avoid the ground already taught in system-design, api-design, software-architect, and computer-science. Thirty-one lessons.

0%

Not started

Nothing saved yet. Progress is kept in this browser until you sign in.

Start the path

The backend developer's job · 6

Working with databases in code · 7

Security in backend code · 5

Beyond the request-response cycle · 9

Operating and testing what you built · 4

01What Does a Backend Developer Do?What a backend service is actually responsible for, and where that responsibility stops and the frontend's or infrastructure's begins.Beginner · 11 min02Choosing a Backend Language and RuntimeHow Node.js, Python, Go, Java, Ruby, PHP, .NET, and Rust actually trade off for backend work, and why the "best" one depends on what you're building.Beginner · 7 min03Web Frameworks and the Request-Response CycleWhat actually happens inside a web framework between an HTTP request arriving and a response going out — routing, middleware, controllers, and MVC.Beginner · 60 min04The Twelve-Factor App and Environment ConfigWhy config lives in environment variables, not code, and the twelve-factor discipline that makes a service portable across dev, staging, and prod.Intermediate · 30 min05Web Servers, Application Servers, and Reverse ProxiesWhy your framework's own server never faces the internet directly, and what Nginx or Apache is actually doing in front of it.Beginner · 13 min06Containerizing a Backend ServiceWhy you package a backend service as a container image — the problem it solves and how a Dockerfile fits with twelve-factor config.Beginner · 2 min01Relational vs. NoSQL Databases in PracticeHow a working backend developer actually decides between a relational database and a document, key-value, or wide-column store for a given app.Beginner · 12 min02ORMs, Query Builders, and Raw SQLWhat an ORM actually buys and costs you, where a query builder fits between it and raw SQL, and when to just write the SQL yourself.Intermediate · 16 min03Schema Migrations and Change ManagementWhy schema changes need to be versioned, repeatable code, and how the expand-contract pattern lets you deploy and migrate independently.Intermediate · 30 min04Transactions and Isolation Levels in Application CodeWhere to actually put BEGIN/COMMIT/ROLLBACK in your code, what isolation levels prevent, and the deadlock-and-retry reality of using them.Intermediate · 8 min05The N+1 Query Problem and Eager LoadingThe classic ORM bug where a loop issues one query per item instead of one batched query — how to detect it and how to fix it.Intermediate · 11 min06Time, Timezones, and Locale-Aware DataWhy you store timestamps in UTC and convert at the edge, the DST bugs that hit when you don't, and storing a user's timezone instead of assuming the server's.Intermediate · 10 min07Caching in Application CodeThe cache-aside pattern as you actually write it in a request handler, and why invalidation is the hard part, not the lookup.Intermediate · 14 min01Password Hashing and Credential StorageWhy passwords are never stored as plaintext, why fast hashes like SHA-256 are the wrong tool, and why bcrypt/scrypt/argon2 exist.Intermediate · 13 min02Input Validation and Injection AttacksWhy parameterized queries stop SQL injection, and the broader discipline of validating input and encoding output before it reaches another interpreter.Intermediate · 9 min03Secrets and Sensitive Data HandlingThe day-to-day discipline of keeping secrets out of version control and out of logs, as an app developer rather than an infrastructure team.Intermediate · 10 min04Sessions and Cookies in PracticeThe Set-Cookie flags that actually protect a login session, and where server-side session data should live once you have more than one server.Intermediate · 21 min05Rate Limiting Implementation in Your AppHow to actually bolt rate limiting onto a real service — the counting middleware, the 429 response, and in-process versus Redis-backed counters.Intermediate · 24 min01Background Jobs, Task Queues, and SchedulingWhy slow or unreliable work gets moved out of the request cycle, and how job queues, retries, and idempotent design make that safe.Intermediate · 56 min02Search Engines and Full-Text SearchWhy LIKE queries don't scale for text search, how an inverted index fixes that, and when to reach for a dedicated search engine instead.Intermediate · 12 min03File Uploads and Object StorageWhy uploaded files belong in object storage, not your database, and how presigned URLs keep bytes off your own server.Intermediate · 8 min04Sending Transactional EmailWhy password resets and receipts need a transactional email service, not your own SMTP server, and what SPF, DKIM, and DMARC actually fix.Beginner · 26 min05Receiving and Verifying WebhooksHow to verify a webhook's HMAC signature, respond fast, and process the sender's retries without double-charging or double-emailing anyone.Intermediate · 11 min06Calling External APIs ReliablyWhy every outbound HTTP call needs a timeout, how to retry transient failures with backoff and jitter, and when not to retry at all.Intermediate · 24 min07Feature Flags in PracticeWhy feature flags exist, how they decouple deploying code from releasing it, and what separates an env var flag from a real targeting service.Intermediate · 7 min08Idempotency Keys in PracticeHow a client-generated idempotency key, a dedup table, and one transaction make an unsafe retry like "charge this card" safe.Intermediate · 17 min09Real-Time Features: WebSockets, SSE, and Long Polling in PracticeChoosing between WebSockets, server-sent events, and long polling, and the real problem of fanning out messages once you run more than one server.Intermediate · 52 min01Health Checks and Graceful ShutdownWriting liveness and readiness endpoints and a SIGTERM handler that drains in-flight requests before your own process exits.Intermediate · 36 min02Structured Logging and Correlation IDsWhat to put in a log line, when to use each log level, and how a correlation ID lets you reconstruct one request across an entire call chain.Intermediate · 40 min03Metrics and Instrumentation in Application CodeWhat counters, gauges, and histograms actually measure, and how adding them to your own code is what makes a service's performance measurable.Intermediate · 15 min04Testing Backend Services with Real DependenciesTest databases, fixtures, resetting state between tests, ephemeral containers versus mocking, and stubbing external HTTP dependencies.Advanced · 22 min

The backend developer's job

6 lessons

  1. 01 / 06What Does a Backend Developer Do?What a backend service is actually responsible for, and where that responsibility stops and the frontend's or infrastructure's begins.11 min
  2. 02 / 06Choosing a Backend Language and RuntimeHow Node.js, Python, Go, Java, Ruby, PHP, .NET, and Rust actually trade off for backend work, and why the "best" one depends on what you're building.7 min
  3. 03 / 06Web Frameworks and the Request-Response CycleWhat actually happens inside a web framework between an HTTP request arriving and a response going out — routing, middleware, controllers, and MVC.60 min
  4. 04 / 06The Twelve-Factor App and Environment ConfigWhy config lives in environment variables, not code, and the twelve-factor discipline that makes a service portable across dev, staging, and prod.30 min
  5. 05 / 06Web Servers, Application Servers, and Reverse ProxiesWhy your framework's own server never faces the internet directly, and what Nginx or Apache is actually doing in front of it.13 min
  6. 06 / 06Containerizing a Backend ServiceWhy you package a backend service as a container image — the problem it solves and how a Dockerfile fits with twelve-factor config.2 min

Working with databases in code

7 lessons

  1. 01 / 07Relational vs. NoSQL Databases in PracticeHow a working backend developer actually decides between a relational database and a document, key-value, or wide-column store for a given app.12 min
  2. 02 / 07ORMs, Query Builders, and Raw SQLWhat an ORM actually buys and costs you, where a query builder fits between it and raw SQL, and when to just write the SQL yourself.16 min
  3. 03 / 07Schema Migrations and Change ManagementWhy schema changes need to be versioned, repeatable code, and how the expand-contract pattern lets you deploy and migrate independently.30 min
  4. 04 / 07Transactions and Isolation Levels in Application CodeWhere to actually put BEGIN/COMMIT/ROLLBACK in your code, what isolation levels prevent, and the deadlock-and-retry reality of using them.8 min
  5. 05 / 07The N+1 Query Problem and Eager LoadingThe classic ORM bug where a loop issues one query per item instead of one batched query — how to detect it and how to fix it.11 min
  6. 06 / 07Time, Timezones, and Locale-Aware DataWhy you store timestamps in UTC and convert at the edge, the DST bugs that hit when you don't, and storing a user's timezone instead of assuming the server's.10 min
  7. 07 / 07Caching in Application CodeThe cache-aside pattern as you actually write it in a request handler, and why invalidation is the hard part, not the lookup.14 min

Security in backend code

5 lessons

  1. 01 / 05Password Hashing and Credential StorageWhy passwords are never stored as plaintext, why fast hashes like SHA-256 are the wrong tool, and why bcrypt/scrypt/argon2 exist.13 min
  2. 02 / 05Input Validation and Injection AttacksWhy parameterized queries stop SQL injection, and the broader discipline of validating input and encoding output before it reaches another interpreter.9 min
  3. 03 / 05Secrets and Sensitive Data HandlingThe day-to-day discipline of keeping secrets out of version control and out of logs, as an app developer rather than an infrastructure team.10 min
  4. 04 / 05Sessions and Cookies in PracticeThe Set-Cookie flags that actually protect a login session, and where server-side session data should live once you have more than one server.21 min
  5. 05 / 05Rate Limiting Implementation in Your AppHow to actually bolt rate limiting onto a real service — the counting middleware, the 429 response, and in-process versus Redis-backed counters.24 min

Beyond the request-response cycle

9 lessons

  1. 01 / 09Background Jobs, Task Queues, and SchedulingWhy slow or unreliable work gets moved out of the request cycle, and how job queues, retries, and idempotent design make that safe.56 min
  2. 02 / 09Search Engines and Full-Text SearchWhy LIKE queries don't scale for text search, how an inverted index fixes that, and when to reach for a dedicated search engine instead.12 min
  3. 03 / 09File Uploads and Object StorageWhy uploaded files belong in object storage, not your database, and how presigned URLs keep bytes off your own server.8 min
  4. 04 / 09Sending Transactional EmailWhy password resets and receipts need a transactional email service, not your own SMTP server, and what SPF, DKIM, and DMARC actually fix.26 min
  5. 05 / 09Receiving and Verifying WebhooksHow to verify a webhook's HMAC signature, respond fast, and process the sender's retries without double-charging or double-emailing anyone.11 min
  6. 06 / 09Calling External APIs ReliablyWhy every outbound HTTP call needs a timeout, how to retry transient failures with backoff and jitter, and when not to retry at all.24 min
  7. 07 / 09Feature Flags in PracticeWhy feature flags exist, how they decouple deploying code from releasing it, and what separates an env var flag from a real targeting service.7 min
  8. 08 / 09Idempotency Keys in PracticeHow a client-generated idempotency key, a dedup table, and one transaction make an unsafe retry like "charge this card" safe.17 min
  9. 09 / 09Real-Time Features: WebSockets, SSE, and Long Polling in PracticeChoosing between WebSockets, server-sent events, and long polling, and the real problem of fanning out messages once you run more than one server.52 min

Operating and testing what you built

4 lessons

  1. 01 / 04Health Checks and Graceful ShutdownWriting liveness and readiness endpoints and a SIGTERM handler that drains in-flight requests before your own process exits.36 min
  2. 02 / 04Structured Logging and Correlation IDsWhat to put in a log line, when to use each log level, and how a correlation ID lets you reconstruct one request across an entire call chain.40 min
  3. 03 / 04Metrics and Instrumentation in Application CodeWhat counters, gauges, and histograms actually measure, and how adding them to your own code is what makes a service's performance measurable.15 min
  4. 04 / 04Testing Backend Services with Real DependenciesTest databases, fixtures, resetting state between tests, ephemeral containers versus mocking, and stubbing external HTTP dependencies.22 min
Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark