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

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)
主站蜘蛛池模板: 德钦县| 井冈山市| 白玉县| 大关县| 宿州市| 宣汉县| 富阳市| 荣成市| 化州市| 尼木县| 宁安市| 南陵县| 蓝山县| 德保县| 佛冈县| 郓城县| 普宁市| 金乡县| 苗栗市| 苗栗市| 张家界市| 嘉黎县| 夏邑县| 章丘市| 凌海市| 武山县| 乐业县| 山阴县| 福泉市| 梁山县| 乌苏市| 茂名市| 襄垣县| 万荣县| 内乡县| 南投市| 南康市| 丰台区| 高州市| 西青区| 姜堰市|