Performance Analysis and Comparison of Node.Js and Java Spring Boot in Implementation of Restful Applications

操作系统 Java 计算机科学 节点(物理) 弹簧(装置) 嵌入式系统 工程类 结构工程 机械工程
作者
J. S. Shyam Mohan,Krishanu Goswami
出处
期刊:Software - Practice and Experience [Wiley]
卷期号:55 (7): 1209-1233 被引量:11
标识
DOI:10.1002/spe.3418
摘要

Purpose The response time of a website has an impact on the overall user experience. Slow‐loading or unresponsive applications can quickly frustrate and alienate users, leading to dissatisfaction and potentially driving them away. Conversely, fast and efficient applications can greatly enhance user engagement, satisfaction, and ultimately contribute to the success of an online business. Objectives The main objective of this work is to check and compare the performance between Node.js and Java Spring Boot, in the context of implementing RESTful applications. REST (Representational State Transfer) has emerged as a dominant architectural style for building web services due to its simplicity, scalability, and compatibility with the stateless nature of the web. Methodology To achieve this objective, both implementations were created with an identical business use case, aiming to provide the fundamental CRUD operations (Create, Read, Update, and Delete). To conduct the performance analysis, Apache JMeter tool is used that enables the creation of a diverse set of concurrent virtual users, simulating real‐world scenarios to load both applications at regular intervals. By subjecting the applications to varying user loads, it can be assessed how each platform performs under different workloads and identify potential bottlenecks and areas for improvement. Results The results obtained suggest that Node.js excels in faster response times for HTTP GET, ideal for read operations. However, Spring Boot outperforms Node.js for complex operations like POST, PUT, and DELETE under higher user loads. Both faced challenges at 64,000 virtual users, with error rates from 10% to 75%, but Spring showed better error handling. Spring required fewer lines of code, benefiting from its environment and dependencies. Resource utilization in Node.js proved to be efficient with CPU load below 40% even under heavy loads. Spring on the other hand provided better response times, exhibited higher CPU usage at times, suggesting more resource‐intensive optimization. The comparison emphasizes the importance of technology stack choice in development, speed and performance. The findings serve as a basis for developers to make informed decisions when selecting the appropriate technology stack based on specific project requirements, workload considerations, and performance expectations.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
赘婿的应助被哈哈采纳,获得30
刚刚
champion发布了新的文献求助10
2秒前
MMP完成签到,获得积分10
2秒前
CipherSage的应助被焦一诺采纳,获得10
3秒前
3秒前
orixero的应助被勤劳的瑀采纳,获得10
3秒前
4秒前
4秒前
NengA完成签到,获得积分10
4秒前
优秀大开完成签到,获得积分10
5秒前
5秒前
df完成签到 ,获得积分10
5秒前
共享精神的应助被菘蓝采纳,获得10
5秒前
6秒前
涵雁发布了新的文献求助10
6秒前
酷波er的应助被Q52采纳,获得10
6秒前
椰子杨完成签到,获得积分10
7秒前
sun完成签到,获得积分10
7秒前
8秒前
苍岚完成签到,获得积分10
9秒前
2206714632发布了新的文献求助10
9秒前
10秒前
感动的以旋完成签到,获得积分10
10秒前
Ying发布了新的文献求助10
11秒前
椰子杨发布了新的文献求助10
11秒前
champion完成签到,获得积分20
11秒前
英俊的铭的应助被yizhiyang采纳,获得10
12秒前
12秒前
汉堡包的应助被MY采纳,获得10
13秒前
nature发布了新的文献求助10
13秒前
13秒前
13秒前
yqb发布了新的文献求助10
14秒前
哇塞的完成签到,获得积分10
14秒前
huichenggong完成签到,获得积分10
14秒前
终梦的应助被gmj采纳,获得20
15秒前
兜里有糖完成签到 ,获得积分10
15秒前
勤劳的瑀发布了新的文献求助10
15秒前
16秒前
ou发布了新的文献求助10
16秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
拉伸高分子熔体中缠结行为的模拟和小角中子散射研究 2000
Handbook of Sport Coaching Research 1000
Orthognathic Surgery - 2 Volume Set 500
高分子基功能界面水蒸发材料与应用研究 500
外场增强的水汽发电研究 500
基于结构调控的功能化水诱导发电材料与器件研究 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8193925
求助须知:如何正确求助?哪些是违规求助? 9579945
关于积分的说明 21868504
捐赠科研通 7793568
什么是DOI,文献DOI怎么找? 3437462
关于科研通互助平台的介绍 2560923
邀请新用户注册赠送积分活动 2484250