- 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)
推薦閱讀
- Advanced Splunk
- Advanced Quantitative Finance with C++
- C#編程入門指南(上下冊)
- Java程序員面試算法寶典
- Silverlight魔幻銀燈
- 重學Java設計模式
- The HTML and CSS Workshop
- bbPress Complete
- 基于SpringBoot實現:Java分布式中間件開發入門與實戰
- Laravel Application Development Blueprints
- 分布式架構原理與實踐
- Mastering Embedded Linux Programming
- Offer來了:Java面試核心知識點精講(框架篇)
- 高質量程序設計指南:C++/C語言
- Opa Application Development