REST API performance comparison of web applications based on JavaScript programming frameworks
Article Sidebar
Open full text
Issue Vol. 19 (2021)
-
Comparison of WebSocket and HTTP protocol performance
Wojciech Łasocha, Marcin Badurowicz67-74
-
Comparative analysis of JavaScript package managers - yarn and npm
Michał Chodorowski75-80
-
Accessibility assessment of selected university websites
Wojciech Stasiak, Mariusz Dzieńkowski81-88
-
REST and GraphQL comparative analysis
Piotr Margański, Beata Pańczyk89-94
-
Comparative analysis of performance of ASP.NET Core MVC and Symfony 4 programming frameworks
Marcin Górski, Wojciech Andrzej Piwowarski, Mariusz Dzieńkowski95-99
-
Comparative analysis of frameworks used in automated testing on example of TestNG and WebdriverIO
Alla Shtokal, Jakub Smołka100-106
-
A multi-criteria comparison of mobile applications built with the use of Android and Flutter Software Development Kits
Damian Gałan, Konrad Fisz, Piotr Kopniak107-113
-
Evaluation of the availability of websites of communes in the Lubelskie Province
Michał Bednarczyk, Mariusz Dzieńkowski114-120
-
REST API performance comparison of web applications based on JavaScript programming frameworks
Marcin Grudniak, Mariusz Dzieńkowski121-125
-
The comparative analysis of modern ETL tools
Vitalii Mayuk, Ivan Falchuk, Piotr Muryjas126-131
-
Compilation of iOS frameworks from Linux operating system using open- source tools
Łukasz Rutkowski, Piotr Kopniak132-138
-
Performance analysis of Svelte and Angular applications
Gabriel Białecki, Beata Pańczyk139-143
-
Model of the text classification system using fuzzy sets
Dmytro Salahor, Jakub Smołka144-150
-
Analysis of the possibilities of optimizing SQL queries
Piotr Rymarski, Grzegorz Kozieł151-158
-
Comparison of lightweight frameworks for Java by analyzing proprietary web applications
Michał Błaszczyk, Marek Pucek, Piotr Kopniak159-164
Main Article Content
DOI
Authors
Abstract
The aim of the work was to compare two technologies for creating server applications based on the JavaScript programming language. For the purposes of the research, two test applications were created. The first one was built on the basis of the Express programming framework and the second one on the basis of the Hapi framework. The client part of both applications was prepared using the React library. The client and server parts communicated with each other by means of REST API – the universal HTTP interface. The client application sent requests to the server application which then performed basic operations on the MongoDB basis and returned the result. As part of the work, an experiment consisting of four scenarios was developed. In each scenario, a different type of data was taken into consideration: a string of characters, an array, an object and an array of objects. The research focused on the efficiency aspect – measuring the response time of requests during GET, POST, PUT and DELETE operations. The tests were performed on two computers and the measurements were made in two ways: using a single code embedded in test applications and using the Postman tool. The obtained results, after averaging and analyzing them allowed for the conclusion that the Express framework proved to be more efficient than Hapi due to the shorter response time of requests. Only in the scenario where operations with large datasets were performed was the response time of requests at a similar level.
Keywords:
References
M. Pilar Salas-Zarate, G. Alor-Hernandez, R. Valencia-Garcia, L. Rodriguez-Mazahua, A. Rodriguez-Gonzalez, J. L. Lopez Cuadro, Analyzing best practices on Web development frameworks: The lift approach, Science of Computer Programming, Science of Computer Programming, 102, 1-19, 2015, https://doi.org/10.1016/j.scico.2014.12.004, [16.03.2021]. DOI: https://doi.org/10.1016/j.scico.2014.12.004
Mozilla Developer Network, Wprowadzenie do Express/Node, https://developer.mozilla.org/pl/docs/Learn/Server-side/Express_Nodejs/Introduction, [16.03.2021].
Offshore Web Developer, Hapi vs Express: Which NodeJS Frameworks is the Better?, http://www.offshorewebdeveloper.com/blog/hapi-vs-express/, [16.03.2021].
Stackoverflow.com, https://insights.stackoverflow.com/survey/2020#technology, [27.03.2021].
Github.com, https://github.com/showcases/web-application-frameworks, [27.03.2021].
Stateofjs, https://2020.stateofjs.com/en-US/technologies/back-end-frameworks/, [27.03.2021].
RapidAPI Blog, The Best NodeJS Frameworks for 2021, https://rapidapi.com/blog/best-nodejs-frameworks/, [25.03.2021].
Frameworks built on Express, https://expressjs.com/, https://expressjs.com/en/resources/frameworks.html, [25.03.2021].
S. Martin, Top 10 Node.js Frameworks For Web App Development in 2021, https://javascript.plainenglish.io/top-10-node-js-frameworks-for-web-app-development-in-2020-21-38e3ea2a57e5, [25.03.2021].
Npm trends, https://www.npmtrends.com/express-vs-hapi, [27.03.2021].
D. Swerski, Hapi vs. Express in 2019: Node.js framework comparison, https://raygun.com/blog/hapi-vs-express/, [26.10.2020].
Raygun, Node.js performance vs Hapi, Express, Restify, Koa & More, https://raygun.com/blog/nodejs-vs-hapi-express-restify-koa/, [26.10.2020].
B. Miłosierny, M. Dzieńkowski, The comparative analysis of web application frameworks in the Node.js ecosystem, Journal of Computer Science Institute, 18, 42-48, 2021, https://doi.org/10.35784/jcsi.2423, [30.03.2021]. DOI: https://doi.org/10.35784/jcsi.2423
J. Brett, Getting Started with hapi.js, Packt Publishing, 2016.
E. M. Hahn, Express in action. Writing, building, and testing Node.js applications, Manning Publications Co., 2016.
M. Massé, REST API Design Rulebook, O’Reilly, 2012.
Postman, https://www.postman.com/, [27.03.2021].
Article Details
Abstract views: 1657
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
