Node-js behind the scene [Arabic]

所在平台: Udemy

课程主页: https://www.udemy.com/course/node-js-behind-the-scene-arabic/

课程评论:没有评论

第一个写评论        关注课程

课程简介

Course Title: Node.js 幕后探秘 (Node.js Behind the Scene) 课程概述: 本课程将带您深入了解 Node.js 的内部机制,重点在于掌握事件循环(Event Loop)的工作原理。学习 Node.js 基础固然重要,但理解其内部结构并精通事件循环将使您更上一层楼。 课程内容: * **Node.js 内部结构:** * Node.js 的生命周期。 * Node.js 的 C++ 一侧。 * Node.js 中 C++ 与 JavaScript 的绑定机制。 * **精通事件循环:** * 什么是事件循环的“tick”? * 事件循环何时开始工作? * 通过实际代码实现来理解事件循环的行为,而非仅依赖图示。 * **Node.js 是否单线程?** * 通过编写代码并进行基准测试,向面试官证明 Node.js 并非单线程。 * **Libuv 委托:** * Libuv 的作用是什么? * Libuv 如何提升 Node.js 的性能? * 增加 Libuv 的线程池大小并对代码进行基准测试。 * 通过多线程理解线程池。 * **操作系统委托(OS Delegation):** * 什么是操作系统委托? * 何时 Node.js 和 Libuv 会选择将功能委托给操作系统? * **复杂的 Node.js 面试题:** * 学习如何解决复杂问题,以及您的线程如何在您的机器核心之间分配。 * **事件循环阻塞(Event Loop Blocking):** * 编写代码来阻塞事件循环,并衡量阻塞对性能的影响。 * 学习聚类(Clustering)和工作线程(Worker Thread)如何帮助我们减少阻塞的影响。 * **Node.js 聚类模式 (Node Cluster Mode):** * 学习如何以聚类模式运行程序。 * 使用 pm2 来管理聚类。 * 聚类模式如何解决事件循环阻塞问题? * **工作线程 (Worker Threads):** * 学习如何使用工作线程。 * 工作线程如何解决事件循环阻塞问题?

课程评论(0条)

课程详情

learning basics of node-js is greate but learning node internal structure and mastering event loop is much more better. what we will cover ?Node Internal structure:Life cycle on nodejsC++ side of nodejsBinding between c++ and js inside nodejsMaster Event Loop:what's event loop tick ?when event loop is start working?we will implement event loop to understand loop behavior instead of diagrams.Is node a single thread?verify to your interviewer that node is't a single threaded by writing code and benchmark it.Libuv Delegation:what's is the purpose of libuv?.how libuv increase nodejs performance?.increasing libuv thread pool size and benchmark our code.thread pool with multi threading.OS Delegation:what's os Delegation?when node and libuv decide to delegate this function to OS?Complex Nodejs Interview Questionyou will be trained how to solve complex problem and how your threads is distributed among your machine coresWhat's event loop blocking?we will write code to block our event loop and measure how this blocking impact our performance.we will learn how clustering and worker thread will help us to decrease the impact of the blocking. What 's Node cluster Mode ?we will learn how to run our program in cluster mode.we will use pm2 for cluster managing.How cluster mode solve our event loop blocking?.what's worker threads ?we will learn how to use worker thread.How worker thread solve our event loop blocking?.

课程标签

0人关注该课程

主题相关的课程