Skip to content

Course

Backend Engineering with Node & Bun

How real servers work: the event loop that makes Node fast, HTTP and routing without framework magic, middleware and validation, session and token auth, and the resilience and performance habits of production APIs.

9 lessons

Course Q&A

The Server Shape

The event loop mental model, HTTP from scratch, and routing + middleware — what the frameworks actually do.

  1. 01The Event Loop: One Thread, Many RequestsWhy Node serves thousands of connections on one thread — and the one rule that keeps it fast.20mOpen
  2. 02HTTP Without a FrameworkMethod, path, headers, status, body — the five things every request is, before Express adds magic.20mOpen
  3. 03Routing and Middleware: The Request PipelineHow a request flows through auth → logging → parsing → your handler, and why order is everything.20mMembers
  4. 04Streams and Backpressure: Node's Secret WeaponWhy Node handles gigabyte payloads on a 512MB dyno — streams, pipe(), and the backpressure that keeps producers honest.22mMembers

Real APIs

Input validation, authentication, and error handling that hold up in production.

  1. 01Validate at the Boundary, Trust NothingUser input is adversarial input — schema validation, sanitization, and the parameterized-query habit that ends SQL injection.20mMembers
  2. 02Auth: Sessions, Tokens, and What Actually MattersCookie sessions vs. bearer tokens, where each belongs, and the four rules that prevent 90% of auth bugs.22mMembers

Production

Performance basics, resilience patterns, and the deploy habits that keep APIs alive.

  1. 01Errors, Retries, and Staying UpStructured error responses, retry-with-backoff for downstream calls, and timeouts that prevent cascade failures.20mMembers
  2. 02Performance: Measure First, Cache SecondWhy the slow part is almost never the code you think, and the three numbers that actually tell you if an API is fast.18mMembers
  3. 03Deploying Node Services: Processes, Restarts, and Graceful ShutdownThe operational half of a Node service — process managers, health checks, graceful shutdown, and zero-downtime deploys.20mMembers