Back to Home

Node.js Concepts

JavaScript runtime built on Chrome's V8 engine for building fast, scalable network applications with non-blocking I/O

Non-Blocking I/O
•
V8 Engine
•
Event-Driven

Event Loop & Async

Understanding Node.js non-blocking I/O model and the event-driven architecture that powers high-performance applications.

Call StackCallback QueueMicrotasksprocess.nextTicksetImmediate

Modules System

Deep dive into CommonJS and ES Modules, understanding require vs import and module caching mechanisms.

CommonJSES ModulesModule CachingCircular Dependenciespackage.json

Streams & Buffers

Efficient handling of large data with streams for reading, writing, and transforming data incrementally.

Readable StreamsWritable StreamsTransformPipingBuffer API

File System (fs)

Working with files and directories using synchronous and asynchronous file operations.

fs.readFilefs.writeFilefs PromisesPath ModuleFile Watchers

Process & Memory

Managing Node.js processes, understanding memory management, garbage collection, and cluster mode.

process.envChild ProcessesCluster ModuleWorker ThreadsMemory Leaks

NPM & Package Management

Mastering the Node Package Manager, semantic versioning, and dependency management best practices.

package.jsonSemantic Versioningnpm scriptsLock FilesPublishing

Quick Example

const http = require('http');

const server = http.createServer((req, res) => {
  res.writeHead(200, { 'Content-Type': 'application/json' });
  res.end(JSON.stringify({ message: 'Hello from Node.js!' }));
});

server.listen(3000, () => {
  console.log('🚀 Server running on http://localhost:3000');
});