Performance analysis of REST API technologies using Spring and Express.js examples

Maciej Wicha

maciejwicha8@gmail.com
Department of Computer Science, Lublin University of Technology (Poland)
https://orcid.org/0009-0008-1092-2339

Beata Pańczyk


Department of Computer Science, Lublin University of Technology (Poland)
https://orcid.org/0000-0001-8908-8501

Abstract

The purpose of this article is a comparative analysis of two technologies for building applications in REST architecture. A Java-based development framework - Spring, and a framework designed for JavaScript language and Node environment - Express.js were analyzed. The test application was designed and implemented in both studied technologies. Using the Apache JMeter tool, HTTP request processing times were measured by operating on simple text data. The experiment was based on 5 scenarios repeated for a different number of users in the range of 10 to 100, with a constant number of executed requests to the server. The analysis conducted showed that the application implemented in Express.js handles HTTP requests up to 249% more efficiently than its counterpart in Spring.


Keywords:

Spring, Express.js, REST API, performance benchmarking

Dokumentacja API - Meta for Developers, https://developers.facebook.com/docs/pages/publishing/, [18.06.2023].
  Google Scholar

Dokumentacja API - Twitter for Developers, https://developer.twitter.com/en/docs/twitter-api/tweets/
  Google Scholar

manage-tweets/api-reference/post-tweets, [18.06.2023].
  Google Scholar

M. Grudniak, M. Dzieńkowski, REST API performance comparison of web applications based on JavaScript programming frameworks, Journal of Computer Sciences Institute, 19 (2021) 121-125, https://doi.org/10.35784/jcsi.2620.
DOI: https://doi.org/10.35784/jcsi.2620   Google Scholar

K. K. Dhall, A performance comparison of restful applications implemented in Spring Boot Java and MS.NET Core, Journal of Physics: Conference Series, 1933 (2021) 12-41, https://doi.org/10.1088/1742-6596/1933/1/012041.
DOI: https://doi.org/10.1088/1742-6596/1933/1/012041   Google Scholar

K. Kronis, M. Uhanova, Performance comparison of Java EE and ASP.NET Core Technologies for web API development, Applied Computer Systems 23 (2018) 37-44, https://doi.org/10.2478/acss-2018-0005.
DOI: https://doi.org/10.2478/acss-2018-0005   Google Scholar

K. Lei, Y. Ma, Z. Tan, Performance comparison and evaluation of Web Development Technologies in PHP, python, and node.js, 2014 IEEE 17th International Conference on Computational Science and Engineering, (2014) 661-668, https://doi.org/10.1109/cse.2014.142.
DOI: https://doi.org/10.1109/CSE.2014.142   Google Scholar

Stack Overflow Developer Survey 2023, https://survey.stackoverflow.co/2023#most-popular-technologies-webframe-prof, [26.06.2023].
  Google Scholar

Spring - prostota i uniwersalność najpopularniejszego frameworku Java, https://boringowl.io/tag/spring, [26.06.2023].
  Google Scholar

Stack Overflow Developer Survey 2022, https://survey.stackoverflow.co/2022#most-popular-technologies-webframe-prof, [26.06.2023].
  Google Scholar

Express.js - MVC Framework Node.js, https://boringowl.io/tag/express-js, [19.06.2023].
  Google Scholar

Stack Overflow Developer Survey 2018, https://insights.stackoverflow.com/survey/2018#most-popular-technologies, [26.06.2023].
  Google Scholar

Stack Overflow Developer Survey 2020, https://insights.stackoverflow.com/survey/2020#technology-web-frameworks-professional-developers2, [26.06.2023].
  Google Scholar

Stack Overflow Developer Survey 2021, https://insights.stackoverflow.com/survey/2021#most-popular-technologies-webframe-prof, [26.06.2023].
  Google Scholar

Download


Published
2023-12-29

Cited by

Wicha, M., & Pańczyk, B. (2023). Performance analysis of REST API technologies using Spring and Express.js examples. Journal of Computer Sciences Institute, 29, 352–359. https://doi.org/10.35784/jcsi.3796

Authors

Maciej Wicha 
maciejwicha8@gmail.com
Department of Computer Science, Lublin University of Technology Poland
https://orcid.org/0009-0008-1092-2339

Authors

Beata Pańczyk 

Department of Computer Science, Lublin University of Technology Poland
https://orcid.org/0000-0001-8908-8501

Statistics

Abstract views: 131
PDF downloads: 120