官术网_书友最值得收藏!

  • Node.js Web Development
  • David Herron
  • 280字
  • 2021-06-25 21:53:53

Preface

Node.js is a server-side JavaScript platform using an event-driven, non-blocking I/O model, allowing users to build fast and scalable transaction-intensive applications running in real time. It plays a significant role in the software development world and liberates JavaScript from the web browser. With Node.js, we can reuse our JavaScript skills for general software development on a large range of systems.

It runs atop the ultra-fast JavaScript engine at the heart of Google's Chrome browser, V8, and adds a fast and robust library of asynchronous network I/O modules. 

The primary focus of Node.js is developing high performance, highly scalable web applications, and it also sees a widespread use in other areas. Electron, the Node.js-based wrapper around the Chrome engine, is the basis for popular desktop applications, such as Atom and Visual Studio Code editors, GitKraken, Postman, Etcher, and the desktop Slack client. Node.js is popular for developing Internet of Things devices and sees a tremendous adoption in microservice development and for building tools for frontend web developers and more. Node.js, as a lightweight high-performance platform, fits microservice development like a glove.

The Node.js platform uses an asynchronous single-thread system, with asynchronously invoked callback functions (also known as event handlers) and an event loop, as opposed to a traditional thread-based architecture.

The theory is that threaded systems are notoriously difficult to develop, and that threads themselves impose an architectural burden on app servers. Node.js's goal is to provide an easy way to build scalable network servers.

The whole Node.js runtime is designed around asynchronous execution. JavaScript was chosen as the language because anonymous functions and other language elements provide an excellent base for implementing asynchronous computation.

主站蜘蛛池模板: 乌兰察布市| 西安市| 朝阳区| 化州市| 射洪县| 墨竹工卡县| 五家渠市| 临高县| 陵川县| 玉门市| 新干县| 墨玉县| 通渭县| 桂阳县| 巢湖市| 富阳市| 乌鲁木齐县| 颍上县| 凤庆县| 洪洞县| 县级市| 漳州市| 禄丰县| 苏尼特右旗| 武冈市| 彭水| 宽城| 崇义县| 景洪市| 东乌珠穆沁旗| 宝兴县| 曲松县| 南溪县| 迭部县| 宁化县| 定陶县| 钟山县| 耒阳市| 上思县| 息烽县| 荆门市|