- Beginning API Development with Node.js
- Anthony Nandaa
- 178字
- 2021-07-23 17:21:47
The Basics of Node.js
Node.js is an event-driven, server-side JavaScript environment. Node.js runs JS using the V8 engine developed by Google for use in their Chrome web browser. Leveraging V8 allows Node.js to provide a server-side runtime environment that compiles and executes JS at lightning speeds.
Node.js runs as a single-threaded process that acts upon callbacks and never blocks on the main thread, making it high-performing for web applications. A callback is basically a function that is passed to another function so that it can be called once that function is done. We will look into this in a later topic. This is known as the single-threaded event loop model. Other web technologies mainly follow the multithreaded request-response architecture.
The following diagram depicts the architecture of Node.js. As you can see, it's mostly C++ wrapped by a JavaScript layer. We will not go over the details of each component, since that is out of the scope of this chapter.

Node's goal is to offer an easy and safe way to build high-performance and scalable network applications in JavaScript.
- Building E-commerce Sites with VirtueMart Cookbook
- 網(wǎng)絡(luò)故障現(xiàn)場(chǎng)處理實(shí)踐(第4版)
- 局域網(wǎng)組建、管理與維護(hù)項(xiàng)目教程(Windows Server 2003)
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(shì)(2021—2023)
- 大話社交網(wǎng)絡(luò)
- Yii Application Development Cookbook(Second Edition)
- 智慧光網(wǎng)絡(luò):關(guān)鍵技術(shù)、應(yīng)用實(shí)踐和未來(lái)演進(jìn)
- OMNeT++與網(wǎng)絡(luò)仿真
- 網(wǎng)管第一課:網(wǎng)絡(luò)操作系統(tǒng)與配置管理
- 高級(jí)網(wǎng)絡(luò)技術(shù)
- 物聯(lián)網(wǎng)與智慧農(nóng)業(yè)
- Building RESTful Web Services with .NET Core
- 人際網(wǎng)絡(luò)
- RestKit for iOS
- 區(qū)塊鏈社區(qū)運(yùn)營(yíng)手冊(cè)