Перейти к содержимому

NodeJS Bootcamp | Day 2 | NodeJS Internals

CodeKerdos

0:00 / 0:00

NodeJS Bootcamp | Day 2 | NodeJS Internals

168 просмотров · 11 дней назад
CodeKerdos
652 подписчика
168 просмотров · 11 дней назад
Welcome to Day 2 of the Node.js Bootcamp by ‪@CodeKerdos‬ ! In this session, we go deeper into Node.js internals and understand how Node.js executes code, handles asynchronous operations, and manages I/O efficiently. We also explore practical file system operations and the role of libuv in the Node.js runtime. What You'll Learn: 1. File System (FS) Operations Synchronous vs asynchronous file system operations Appending data to files using fs.appendFileSync() Adding timestamps with Date.now() and newline characters for readable logs Copying files using fs.copyFileSync() Creating directories using fs.mkdirSync() Understanding the recursive: true option for creating nested directories 2. Node.js Architecture & Internals How Node.js combines the V8 JavaScript engine with C++ components The role of libuv in Node.js Understanding the event loop and thread pool How Node.js handles asynchronous I/O operations 3. Understanding the Event Loop Event loop phases and their responsibilities Timers and setTimeout() I/O polling and callbacks setImmediate() and its execution Close callbacks Why the execution order of setTimeout() and setImmediate() can vary in top-level code 4. Synchronous vs Asynchronous Execution How synchronous code blocks the main JavaScript thread How asynchronous operations allow execution to continue How Node.js manages file system operations and other I/O tasks 5. The libuv Thread Pool What the thread pool does How certain file system operations, hashing, and compression can use the thread pool How offloading supported operations helps keep the main JavaScript thread responsive This session combines practical coding examples with an explanation of what happens behind the scenes when Node.js executes your code. These concepts are especially useful for developers preparing for backend engineering and Node.js interviews. Who Should Watch This Session? Developers who want to understand Node.js beyond basic CRUD APIs Frontend developers moving into backend development Software engineers preparing for Node.js interviews Anyone interested in asynchronous programming, event loops, and runtime internals Stay tuned for upcoming sessions as we continue building our understanding of Node.js and production-ready backend development. If you find this session useful, like the video, share it with fellow developers, and subscribe to the channel for upcoming bootcamp sessions. #NodeJS #NodeJSBootcamp #JavaScript #BackendDevelopment #EventLoop #NodeJSInternals #Libuv #SoftwareEngineering #InterviewPreparation #CodeKerdos