Performance comparison of web backend and database: A case study of node.js, golang and mysql, mongo db

被引:0
作者
Effendy F. [1 ]
Taufik [1 ]
Adhilaksono B. [1 ]
机构
[1] Information System Study Program, Departement of Mathematics, Universitas Airlangga, Mulyorejo, Surabaya
关键词
Golang; MongoDB; MySQL; Node.[!text type='JS']JS[!/text; Performance comparison; Programming;
D O I
10.2174/2666255813666191219104133
中图分类号
学科分类号
摘要
Aims: This study aims to compare the performance of Golang and node.js as web applications backend regarding response time, CPU utilization, and memory usage by using MySQL and MongoDB as databases Background: There has been a lot of literature and research that addresses web server comparisons and database comparisons, but no one has discussed the combination of the two. Node.js and Golang (Go) were popular platforms that widely used as web and mobile application backends. While MySQL and Go are the two best open source databases that have different characters Objective: To compare the performance of Golang and node.js as web applications backend regarding response time, CPU utilization, and memory usage by using MySQL and MongoDB as databases Methods: In this study, we use four combinations of the web server and databases to compare, that is Node.js-Mysql, Node.js-MongoDB, Go-Mysql, and Go-MongoDB. Each database consists of 25 attributes with 1000 records. Each combination has the same routing URLs. From the previous study found a significant time difference between MySQL and MongoDB in query operations with 1000 data, so that in this study, the routing/showAll URL uses 1000 data. Results: The result shows that the combination of Go and MySQL is superior regarding CPU utilization and memory usage, while Node.js and MySQL combination is superior regarding response time. Conclusion: From this study can be concluded that the combination of Go-MySQL is superior regarding memory usage and CPU utilization, while Node.js-MySQL is superior regarding response time. Other: With this research, web developers can determine the right platform for their application; they also can reduce application developing cost so that the development process can be completed more quickly. For the next research best performance platform can be tested for WebSocket communication protocol and real-time technology, because it may provide different results from this research. © 2021 Bentham Science Publishers.
引用
收藏
页码:1955 / 1961
页数:6
相关论文
共 2 条
  • [1] Development and Performance Analysis of RESTful APIs in Core and Node.js']js using MongoDB Database
    Shkodra, Endrit
    Jajaga, Edmond
    Shala, Mehmet
    PROCEEDINGS OF THE 17TH INTERNATIONAL CONFERENCE ON WEB INFORMATION SYSTEMS AND TECHNOLOGIES (WEBIST), 2021, : 227 - 234
  • [2] Analysis of Electric Current by Using MySQL Database on Web Server for Machine Performance Evaluation: A Case Study of Air Conditioning System
    Sriratana, Witsarut
    Khagwian, Vittaya
    Satthamsakul, Sutham
    2020 20TH INTERNATIONAL CONFERENCE ON CONTROL, AUTOMATION AND SYSTEMS (ICCAS), 2020, : 437 - 442