Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 03 / 476%· free preview
Introduction to Node.js3/6

Node.js Architecture & V8 Engine

Architecture
┌─────────────────────────────────────────┐
│           Your Node.js code             │
└────────────────┬────────────────────────┘
                 ▼
┌─────────────────────────────────────────┐
│        Node.js bindings (C++)           │
│   (fs, http, crypto, net, stream …)     │
└──┬──────────────┬──────────────┬────────┘
   ▼              ▼              ▼
┌──────┐    ┌─────────┐    ┌──────────┐
│  V8  │    │  libuv  │    │  OpenSSL │
│ (JS) │    │ (I/O,   │    │  (TLS)   │
│      │    │ thread- │    │          │
│      │    │ pool)   │    │          │
└──────┘    └─────────┘    └──────────┘
V8 Engine
  • Google's open-source JavaScript engine, also used in Chrome.
  • Parses → compiles → optimises JS to machine code via JIT (Just-In-Time).
  • Two compilers: Ignition (fast startup) and TurboFan (heavy optimisation).
  • Garbage collector frees unused memory automatically.
libuv
  • Provides the event loop + cross-platform async I/O.
  • Has a default thread pool of 4 (configurable via UV_THREADPOOL_SIZE) for heavy syscalls (fs, dns, crypto.pbkdf2).
Interview Questions

AI-powered recap

Quick recap quiz?

We'll generate 5 MCQs from this lesson and check your understanding instantly. Takes ~30 seconds.

Ready to move on?
// feedback.matters()
Did this lesson help you?