Let's master the backend

Master backend engineering
through Node.js.

A complete, online book to backend engineering with Node.js. Learn every thing about the runtime and event loop, networking and HTTP, concurrency, data systems, security, observability, performance, and distributed architecture. Go deeper with downloadable bundles and hands-on runtime labs.

205subchapters
7volumes
87k+readers
Reading workspace
Current path
Pick up where the runtime gets tricky.
Chapter context, practice, and review material stay one click away as you read.
Continue
Runtime architecture
Return to your next unread subchapter.
Practice
Matching lab
Open the runnable exercise.
$ node --inspect app.js
Debugger listening on ws://…
event loop: poll → check → close
heap: 48.2 MB · gc: scavenge
libuv threads: 4 active
WHY NODEBOOK

Most guides teach the API. NodeBook teaches the machine.

NodeBook explains what happens inside the runtime when your application handles I/O, schedules work, allocates memory, and serves traffic in production.

01I/O

Libuv & the Event Loop

Poll, check and idle phases, threadpool queueing, and platform differences across epoll, kqueue, and IOCP.

02V8

V8 Compilation Pipeline

Deoptimizations, hidden-class transitions, and polymorphic inline-cache misses, with practical examples.

03STREAMS

Zero-Copy Stream Architecture

Binary protocols with backpressure-aware transforms, scatter/gather I/O, and external memory management.

04NATIVE

Native Addon Development

Thread-safe N-API modules, work across uv_queue_work, and managing memory across the JS / C++ boundary.

05OBSERVE

Production Observability

Propagate trace context with AsyncLocalStorage, control metric cardinality, and read latency with flamegraphs.

06MEMORY

Production Memory Management

Tune generational GC, track retainers in heap snapshots, and handle external memory pressure and OOM.

CURRICULUM

Seven volumes. One runtime.

Node.js ArchitectureV8, libuv, C++ bindings, the event loop model, and bootstrap lifecycle.
Buffers & Binary DataBinary memory, encodings, allocation patterns, views, and fragmentation.
StreamsStream types, backpressure, pipelines, transform/duplex, and zero-copy I/O.
File SystemFile descriptors, fs.promises, watching, atomic writes, and permissions.
Process & Operating SystemThe process object, signals, the os module, and standard I/O.
The Module SystemCommonJS, ESM, resolution, interop, caching, and circular dependencies.
Async Patterns & Control FlowCallbacks, promises, async/await, EventEmitter, and async iteration.
Runtime Platform APIs & ToolingCLI flags, env config, web platform APIs, TypeScript, REPL, and inspector.
Network Fundamentals with Node.jsTCP/IP, DNS, sockets, UDP, and the net, dgram, and dns modules.
HTTP Servers, Clients & ProxiesHTTP/1.1, the http module, llhttp, Undici/fetch, pooling, and proxying.
TLS, HTTPS & HTTP/2The TLS handshake, certificates, mutual TLS, ALPN, and HTTP/2 multiplexing.
API Design, Contracts & FrameworksREST, OpenAPI validation, Express/Fastify, GraphQL, gRPC, and versioning.
Realtime & Streaming APIsWebSocket, SSE, long polling, realtime auth, and fanout scaling.
Child Processes & OS Workloadschild_process, stdio wiring, IPC, shell safety, pools, and cluster.
Worker Threads & Shared MemoryCPU-bound work, worker lifecycle, MessagePort, transferables, and Atomics.
Work Queues, Background Jobs & SchedulersDurable jobs, retries, leases, schedulers, and worker fleet operations.
Native Addons, WASM & Node-APIThe native boundary, Node-API, build tooling, thread safety, and WASM.
SQL, PostgreSQL & Relational ModelingRelational design, query planning, indexes, transactions, and isolation.
Node Database Access PatternsDrivers, pools, transactions, migrations, ORMs, and node:sqlite.
Caching & Redis/ValkeyCache placement, data structures, strategies, invalidation, and locks.
Messaging & Event StreamingBrokers, RabbitMQ, Kafka, idempotency, delivery, and event-driven workflows.
Data Scaling, Search & ConsistencyReplication, sharding, CQRS, search indexes, and consistency models.
Crypto & Security PrimitivesHashing, HMAC, encryption, signing, randomness, KDFs, and Web Crypto.
Authentication, Authorization & IdentitySessions, JWTs, OAuth/OIDC, passkeys, RBAC/ABAC, and multi-tenant identity.
Application & API SecurityOWASP risks, injection, XSS, CSRF, SSRF, CORS, and rate limiting.
Supply Chain, Secrets & Runtime Hardeningnpm risk, lockfiles, SBOM/provenance, secrets, and runtime permissions.
Error Handling, Cancellation & ResilienceError taxonomy, async propagation, AbortController, retries, and circuit breakers.
Testing & Quality Gatesnode:test, assertions, mocking, integration and contract tests, and CI.
Observability & DiagnosticsLogs, metrics, traces, AsyncLocalStorage, diagnostics_channel, and the inspector.
Performance EngineeringCPU and memory profiling, event loop utilization, V8 cliffs, and tuning.
Deployment, Operations & PackagingPackaging, process managers, Docker, PID 1, health checks, and shutdown.
System Design for Node BackendsService boundaries, modular monoliths, microservices, EDA, and DDD.
Distributed Systems for Backend EngineersCAP/PACELC, consensus, distributed transactions, ordering, and consistency.
Containers, Kubernetes & Platform EngineeringKubernetes primitives, service discovery, ingress, autoscaling, and IaC.
Cloud, Serverless, Scaling & CostScaling strategies, serverless, capacity planning, load balancing, and FinOps.
PRICING

The book is free.
Go deeper when you're ready.

One-time purchases. No subscriptions. Lifetime access and free updates on everything you buy.

Showing prices in USD
Digital Bundle
Volume I as EPUB, light & dark PDFs, slide decks, and cheatsheets. Read offline, anywhere.
$19.99$49.99
one-time · lifetime access
Volume I EPUB for offline reading
Light and dark PDF editions
Slide decks for chapter review
Cheatsheets for quick lookup
Future Digital Bundle updates
Get Digital Bundle
★ Best value
NodeBook Pro
Everything, together. The complete Digital Bundle plus all seven Node Runtime Labs in one purchase.
$49.99$99.99
Save $9.99 vs buying separately.
Node Runtime Labs
+
Digital Bundle
Everything in the Digital Bundle
All seven Node Runtime Labs
Three upcoming labs when released
Future updates to both products
Lifetime access to everything
Get NodeBook Pro →
Node Runtime Labs
Seven long-form builds: recorder, binary store, stream workbench, resolver, watcher, task runtime, and protocol gateway.
$39.99$79.99
one-time · runs on your machine
Node Runtime Flight Recorder
Binary File Store / Append-Only Log
Stream Processing Workbench
Custom Binary Protocol Gateway
Three more labs upcoming
Get Labs Bundle
RUNTIME LABS

Don't just read the runtime. Build one.

Seven complete projects: a flight recorder, an append-only database, a protocol gateway, and more. Every lab ships a working tool you keep extending.

Explore the labs →
Ishtmeet Singh
10+
yrs Node
87k
readers
AUTHOR

Written by someone who ships Node in production.

I'm Ishtmeet Singh. I've worked with Node.js since 2014, building real-time applications, backend services, and performance-sensitive systems that need clear operational behavior.

NodeBook comes from years of reading runtime behavior, debugging production issues, and documenting the details that usually stay scattered across source, docs, and incident notes. I've always believed this knowledge should be accessible, which is why the book is free.

READER FEEDBACK

What readers are saying.

Finally a resource that doesn’t assume I already know everything. It explains how Node works under the hood, not just how to use it.

JavaScript developer

I’ve been looking for something that actually explains the runtime. The explanations are clear and the examples make sense.

Backend developer

Thank you for keeping this free and accessible. Not everyone can afford expensive courses, and this really helps.

Early reader
NEW RELEASE EMAILS

Get new chapters as they ship.

New chapters, slides, and release notes. No spam, unsubscribe anytime.

Backend Engineering Through Node.js | NodeBook | NodeBook