Comparison of REST and GraphQL web technology performance

The aim of the study was to compare the performance of two data exchange styles commonly used in web applications, i.e. REST and GraphQL. For the purposes of the study two test applications were developed containing the same functionalities, one of which was REST and the other one was GraphQL. They...

Full description

Bibliographic Details
Main Authors: Mateusz Mikuła, Mariusz Dzieńkowski
Format: Article
Language:English
Published: Lublin University of Technology 2020-09-01
Series:Journal of Computer Sciences Institute
Subjects:
Online Access:https://ph.pollub.pl/index.php/jcsi/article/view/2077
_version_ 1819008073038036992
author Mateusz Mikuła
Mariusz Dzieńkowski
author_facet Mateusz Mikuła
Mariusz Dzieńkowski
author_sort Mateusz Mikuła
collection DOAJ
description The aim of the study was to compare the performance of two data exchange styles commonly used in web applications, i.e. REST and GraphQL. For the purposes of the study two test applications were developed containing the same functionalities, one of which was REST and the other one was GraphQL. They were used for performance tests done with the help of the JMeter tool, during which measurements of the total processing time of requests and the volume of data downloaded and sent were performed. An experiment was developed that tested the basic operations found in most network services: display, add, update, and delete data. The most attention was devoted to the information display operation in the case of which load tests were done. On the basis of performed studies and obtained results, no differences in performance during the operation of adding, editing and deleting data by applications based on REST API and GraphQL were found. During the display operation under heavy load conditions and while downloading small portions of data, the service using GraphQL had a better performance. When downloading large portions of data, the REST-based service exhibited a higher performance.
first_indexed 2024-12-21T00:34:40Z
format Article
id doaj.art-d3438a3cda37412aa9a755c120d2a763
institution Directory Open Access Journal
issn 2544-0764
language English
last_indexed 2024-12-21T00:34:40Z
publishDate 2020-09-01
publisher Lublin University of Technology
record_format Article
series Journal of Computer Sciences Institute
spelling doaj.art-d3438a3cda37412aa9a755c120d2a7632022-12-21T19:21:50ZengLublin University of TechnologyJournal of Computer Sciences Institute2544-07642020-09-011630931610.35784/jcsi.20772077Comparison of REST and GraphQL web technology performanceMateusz Mikuła0Mariusz Dzieńkowski1Lublin University of TechnologyLublin University of TechnologyThe aim of the study was to compare the performance of two data exchange styles commonly used in web applications, i.e. REST and GraphQL. For the purposes of the study two test applications were developed containing the same functionalities, one of which was REST and the other one was GraphQL. They were used for performance tests done with the help of the JMeter tool, during which measurements of the total processing time of requests and the volume of data downloaded and sent were performed. An experiment was developed that tested the basic operations found in most network services: display, add, update, and delete data. The most attention was devoted to the information display operation in the case of which load tests were done. On the basis of performed studies and obtained results, no differences in performance during the operation of adding, editing and deleting data by applications based on REST API and GraphQL were found. During the display operation under heavy load conditions and while downloading small portions of data, the service using GraphQL had a better performance. When downloading large portions of data, the REST-based service exhibited a higher performance.https://ph.pollub.pl/index.php/jcsi/article/view/2077rest; graphql; web service; performance testing
spellingShingle Mateusz Mikuła
Mariusz Dzieńkowski
Comparison of REST and GraphQL web technology performance
Journal of Computer Sciences Institute
rest; graphql; web service; performance testing
title Comparison of REST and GraphQL web technology performance
title_full Comparison of REST and GraphQL web technology performance
title_fullStr Comparison of REST and GraphQL web technology performance
title_full_unstemmed Comparison of REST and GraphQL web technology performance
title_short Comparison of REST and GraphQL web technology performance
title_sort comparison of rest and graphql web technology performance
topic rest; graphql; web service; performance testing
url https://ph.pollub.pl/index.php/jcsi/article/view/2077
work_keys_str_mv AT mateuszmikuła comparisonofrestandgraphqlwebtechnologyperformance
AT mariuszdzienkowski comparisonofrestandgraphqlwebtechnologyperformance