- Mastering JavaScript Promises
- Muzzamil Hussain
- 180字
- 2021-07-16 13:46:48
Summing up – the asynchronous programing model
So far, we have seen how the asynchronous model is implemented in JavaScript. This is one core aspect of understanding that JavaScript has its own implementation for the asynchronous programming model, and it has employed much of the core concepts in the asynchronous programming model.
- The asynchronous mode is very important. In the browser, a very time-consuming operation should be performed asynchronously, avoiding the browser unresponsive time; the best example is the Ajax operations.
- On the server side, the asynchronous mode of execution since the environment is single threaded. So, if you allow synchronization to perform all http requests, server performance will decline sharply and will soon lose responsiveness.
- These are simple reasons why implementation on JavaScript is widely accepted in modern applications on all ends of needs. Databases such as MongoDB, Node.js as Server Side JavaScript, Angular.js, and Express.js as frontend, and logic building tools are examples of how heavily JavaScript is implemented throughout the industry. Their stack is commonly refer red to as the MEAN stack (MongoDB, Angular.js, Express.js, and Node.js)
推薦閱讀
- Vue.js 3.x快速入門
- Unreal Engine Physics Essentials
- 編寫高質量代碼:改善Python程序的91個建議
- Instant 960 Grid System
- 軟件項目管理實用教程
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- 編程菜鳥學Python數據分析
- Learning Node.js for .NET Developers
- Julia 1.0 Programming Complete Reference Guide
- Access 2010數據庫應用技術實驗指導與習題選解(第2版)
- 從Power BI到Analysis Services:企業級數據分析實戰
- Python程序設計開發寶典
- WebStorm Essentials
- 深入淺出 HTTPS:從原理到實戰
- Learning Scrapy