REST and GraphQL comparative analysis
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 article presents a comparative analysis of the two most commonly used API web design standards - REST and GraphQL. The time and size of HTTP responses returned by applications were tested. Two applications with the same functionalities, performing CRUD operations, on data stored in the non-relational MongoDB database were used for the research. Both applications were based on NodeJS technology. The JMeter tool was used to collect and analyze the data. On the basis of the obtained results, it was found that there were no significant differences in reading the data with a small number of queries and when removing resources. With the increase in the number of queries, a clear advantage of the REST standard was observed. The advantage of GraphQL, both in response time and size, was demonstrated when retrieving specific data.
Keywords:
References
M. Miłosz, Aplikacje internetowe - od teorii do praktyki, Polskie Towarzystwo Informatyczne, Warszawa, 2008.
What is an API?, Mulesoft, https://www.mulesoft.com/resources/api/what-is-an-api, [22.01.2021].
R. T. Fielding, Architectural Styles and the Design of Network-based Software Architectures, Dissertation, University of California, Irvine, 2020, https://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm, [01.12.2020].
P. Erlandsson, J. Remes, Performance Comparison between GraphQL, REST & SOAP, University of Skovde, Dissertation, http://his.divaportal.org/smash/record.jsf?pid=diva2%3A1449837&dswid=7389, 2020, [19.01.2021].
G. Brito, M. T. Valente, REST vs GraphQL: A Controlled Experiment, IEEE International Conference on Software Architecture (ICSA), Salvador, Brazil, (2020) 81-91, doi: 10.1109/ICSA47634.2020.00016, [21.01.2021]. DOI: https://doi.org/10.1109/ICSA47634.2020.00016
C. Oggier, How fast GraphQL is compared to REST APIs, Haaga-Helia University of Applied Sciences, 2020, http://urn.fi/URN:NBN:fi:amk-2020052714286, [28.01.2021].
T. Eizinger, API Design in Distributed Systems: A Comparison between GraphQL and REST, Master Thesis, University of Applied Science Technikum Wien, 2017, [20.01.2021].
M. Seabra, M. E. Nazario, G. Pinto, REST or GraphQL?: A Performance Comparative Study, Proceedings of the XIII Brazilian Symposium on Software Components, Architectures, and Reuse. Association for Computing Machinery, New York, NY, USA, 2019, https://doi.org/10.1145/3357141.3357149, [29.01.2021]. DOI: https://doi.org/10.1145/3357141.3357149
Apache JMeter, https://jmeter.apache.org/, [20.11.2020].
Article Details
Abstract views: 1254
License

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