Backend engineeringLearning library

Node.js

Use the JavaScript runtime to build small reliable services. Runtime scheduling and stream concepts are foundational; supported APIs, security defaults, and deployment behavior must be checked against the selected Node.js release.

Intermediate15 chapters11 practice questions5 references
Start coursePractise questions

Get an in-app notice when new lessons or practice are added.

15 chapters across 5 modules

Course chapters

Explore all 15 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.

01 · Runtime and program structure3 chapters
  1. Node.js runtime and process

    • Distinguish runtime APIs from browser APIs and JavaScript syntax

    Practice: Write a command-line program that validates arguments and reports a failure exit code.

    Read the primary referenceLesson guide · Ready
  2. Modules and package boundaries

    • Explain CommonJS, ECMAScript modules, and explicit package configuration

    Practice: Create two small modules and document the selected module format.

    Read the primary referenceLesson guide · Ready
  3. Configuration and secrets

    • Separate validated runtime settings from committed source

    Practice: Read configuration, reject missing required values, and redact a sample secret in logs.

    Read the primary referenceLesson guide · Ready
02 · Asynchronous execution3 chapters
  1. The event loop and I/O

    Reason about responsiveness instead of assuming async means parallel.

    • Distinguish event-loop scheduling from work performed by the operating system or worker pool

    Practice: Trace a timer, a promise, and a file operation without assuming nondeterministic I/O ordering.

    Read the primary referenceExpanded reading · Ready
  2. Blocking work and backpressure

    • Identify how unbounded CPU work or buffering harms responsiveness

    Practice: Compare a buffered file transformation with a streaming pipeline.

    Read the primary referenceLesson guide · Ready
  3. Cancellation, timeouts, and errors

    • Set a finite lifetime for work and preserve useful error context

    Practice: Abort a delayed operation and test timeout cleanup.

    Read the primary referenceLesson guide · Ready
03 · HTTP service boundaries3 chapters
  1. Requests, responses, and status codes

    • Model the complete lifecycle of a small HTTP handler

    Practice: Implement a read-only topics endpoint and return explicit invalid-input and not-found responses.

    Read the primary referenceLesson guide · Ready
  2. Body limits and validation

    • Reject oversized or malformed input before domain processing

    Practice: Test a handler with missing fields, wrong types, invalid JSON, and a large body.

    Read the primary referenceLesson guide · Ready
  3. Authentication and authorization boundaries

    • Separate identity verification from permission checks

    Practice: Sketch ownership checks for a progress record and test two distinct users.

    Read the primary referenceLesson guide · Ready
04 · Storage and reliability3 chapters
  1. Database lifecycle and pooling

    • Share a managed connection lifecycle rather than reconnecting on every operation

    Practice: Write a storage adapter interface and a deterministic in-memory test implementation.

    Read the primary referenceLesson guide · Ready
  2. Idempotency and concurrent changes

    • Explain how repeated requests can create duplicate side effects

    Practice: Design a unique operation key and test duplicate submission behavior.

    Read the primary referenceLesson guide · Ready
  3. Graceful shutdown and health

    • Stop accepting work before closing resources

    Practice: Test a shutdown path with an in-flight request and a bounded timeout.

    Read the primary referenceLesson guide · Ready
05 · Tests and operations3 chapters
  1. Unit and integration tests

    • Choose a test boundary that reveals an actual failure mode

    Practice: Test a pure validator and a real local HTTP request separately.

    Read the primary referenceLesson guide · Ready
  2. Structured logs and latency

    • Use request identifiers and durations without exposing credentials

    Practice: Record a failed operation with a safe error category and elapsed time.

    Read the primary referenceLesson guide · Ready
  3. Build a small learning API

    • Combine validation, bounded I/O, persistence boundaries, and shutdown

    Practice: Deliver a topics and progress API with documented status codes and regression cases.

    Read the primary referenceLesson guide · Ready

Learn it. Check it. Try again.

11 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.

Open Node.js practice

Books & references

Free reading at the publisher or author’s site. External materials keep their own licenses.