Skip to main content

Part II — The Node.js runtime & its Java/enterprise contrast

Goal. Derive the Node event loop from the I/O fundamentals of Part I, then go deep on the runtime's real behavior (streams, backpressure, memory/GC, workers, profiling). Introduce the JVM thread-per-request model as the transferable enterprise contrast — so you understand concurrency models, not just one runtime.

Milestone. You can explain the event loop's phases and the thread pool from first principles, diagnose a blocked loop / memory leak / backpressure failure, and articulate when an event-loop model wins versus a thread-per-request model.

Pulsely increment. Begin reimplementing v0 as a real Node service (continues into Part III); add a streaming endpoint that stays memory-bounded under load.

Chapters 7. The Node Event Loop, libuv & the Async Model 8. Node Deeper: Streams, Memory/GC, Workers, Profiling, Graceful Shutdown 9. TypeScript for Backend & the JVM/Java Concurrency Contrast