当前位置: 首页 > news >正文

What is Node.JS and its Pros and Cons

What is Node.JS and its Pros and Cons

JavaScript is a client-side development tool.

Node.js is a server-side development tool. And it’s only a runtime environment based on Chrome V8 so we don’t write some code in Node.js.

在这里插入图片描述

Pros:

JavaScript on a server

First I want to emphasis that Node.JS is just a runtime environment of JavaScript. Express is based on Node.js. So based on Node.JS, the project can inherit JavaScript merit (lightweight, fewer code compared with Java or C) and can use its libraries.

And front-end and back-end can use the same language.

Code for microservices

Node module can help implement microservice philosophy. To be specfic, a project is made up of many modules which are isolated and independent. You can just fix or add one module, which doesn’t influence other module.

Fast

Node.JS is event-based and single thread. It can process several events concurrently, which leads to improve CPU usage.
在这里插入图片描述

Support and Community

There are many companies which use Node.js. And there are many people in Node.js community to provide many solutions and solve the issues.

Packages

There are many packages to solve different problems in NPM. NPM is a place that can install packages.

Easy to learn

Node.JS inherit many features of JavaScript.

Cons:

CPU bottleneck

Because Node.JS is single-thread. So if there are many heavy-computation requests, the thread pool will block. Sometimes we can “expand” the thread pool.
在这里插入图片描述

Immature tool

NPM registry is not mature.

Few experienced developers

There are few Node.JS developers who has 2 years or more experience.

http://www.lryc.cn/news/436401.html

相关文章:

  • TestCraft - GPT支持的测试想法生成器和自动化测试生成器
  • FreeRTOS内部机制学习04(任务通知和软件定时器)
  • 华为eNSP :WLAN的配置
  • 中国大数据产业的融资热潮来袭,哪些领域最受资本青睐?
  • Unity数据持久化 之 使用Excel.DLL读写Excel表格
  • Linux系统:chown命令
  • Unity3D ARPG(动作角色扮演游戏)设计与实现详解
  • Qt实现登录界面
  • big.LITTLE
  • 汤臣倍健,三七互娱,得物,顺丰,快手,游卡,oppo,康冠科技,途游游戏,埃科光电25秋招内推
  • 再谈c++模板
  • 9.11 codeforces Div 2
  • 二级菜单的两种思路(完成部分)
  • 【机器学习导引】ch2-模型评估与选择
  • 二开ihoneyBakFileScan备份扫描
  • leetcode21. 合并两个有序链表
  • 搭建 WordPress 及常见问题与解决办法
  • 《ORANGE‘s 一个操作系统的实现》--保护模式进阶
  • 【可变参模板】可变参类模板
  • Linux 递归删除大量的文件
  • 设计一个算法,找出由str1和str2所指向两个链表共同后缀的起始位置
  • Python中如何判断一个变量是否为None
  • 表观遗传系列1:DNA 甲基化以及组蛋白修饰
  • Android 跳转至各大应用商店应用详情页
  • Pywinauto鼠标操作指南
  • VRAY云渲染动画怎么都是图片?
  • 共享内存(C语言)
  • 《JavaEE进阶》----16.<Mybatis简介、操作步骤、相关配置>
  • HuggingFists算子能力扩展-PythonScript
  • WInform记录的添加和显示