- Mastering Node.js(Second Edition)
- Sandro Pasquali Kevin Faaborg
- 213字
- 2021-07-02 19:28:47
Summary
Programming with events is not always easy. The control and context switches, defining the paradigm, often confound those new to evented systems. This seemingly reckless loss of control and the resulting complexity drives many developers away from these ideas. Students in introductory programming courses normally develop a mindset in which program flow can be dictated, where a program whose execution flow does not proceed sequentially from A to B can bend understanding.
By examining the evolution of the architectural problems, Node is now attempting to solve for network applications—in terms of scaling and code organization, in general terms of data and complexity volume, in terms of state awareness, and in terms of well-defined data and process boundaries. We learned how managing these event queues can be done intelligently. We saw how different event sources are predictably stacked for an event loop to process, and how far-future events can enter and reenter contexts using closures and smart callback ordering. We also learned about the newer Promise, Generator, and async/await structures designed to help with managing concurrency.
We now have a basic domain understanding of the design and characteristics of Node, in particular, how evented programming is done using it. Let's now move on to larger, more advanced applications of this knowledge.
- 網(wǎng)管員典藏書架:網(wǎng)絡(luò)管理與運(yùn)維實(shí)戰(zhàn)寶典
- Building Django 2.0 Web Applications
- Learning QGIS 2.0
- Learning Karaf Cellar
- 電力物聯(lián)網(wǎng)工程技術(shù)原理與應(yīng)用
- 2小時讀懂物聯(lián)網(wǎng)
- Windows Server 2012 Hyper-V虛擬化管理實(shí)踐
- 紅藍(lán)攻防:構(gòu)建實(shí)戰(zhàn)化網(wǎng)絡(luò)安全防御體系
- 高級網(wǎng)絡(luò)技術(shù)
- 物聯(lián)網(wǎng)頂層設(shè)計與關(guān)鍵技術(shù)
- Implementing NetScaler VPX?
- 深入理解計算機(jī)網(wǎng)絡(luò)
- 新媒體交互藝術(shù)
- Architecting Data:Intensive Applications
- 網(wǎng)絡(luò)互聯(lián)技術(shù)(理論篇)