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

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)
主站蜘蛛池模板: 兴宁市| 台南县| 六枝特区| 仁寿县| 渭南市| 茂名市| 荆州市| 新源县| 故城县| 洛浦县| 石狮市| 壶关县| 安顺市| 辽阳市| 渭源县| 泸州市| 兰溪市| 搜索| 施秉县| 孝昌县| 山丹县| 白城市| 冷水江市| 南和县| 北流市| 蓬溪县| 富宁县| 策勒县| 布尔津县| 芦溪县| 凤翔县| 顺平县| 家居| 黑龙江省| 莱州市| 昌宁县| 美姑县| 合山市| 利津县| 南昌县| 盐津县|