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...
Main Authors: | , |
---|---|
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 |
id |
doaj-d3438a3cda37412aa9a755c120d2a763 |
---|---|
record_format |
Article |
spelling |
doaj-d3438a3cda37412aa9a755c120d2a7632020-11-25T04:09:40ZengLublin 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 |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
Mateusz Mikuła Mariusz Dzieńkowski |
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 |
author_facet |
Mateusz Mikuła Mariusz Dzieńkowski |
author_sort |
Mateusz Mikuła |
title |
Comparison of REST and GraphQL web technology performance |
title_short |
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_sort |
comparison of rest and graphql web technology performance |
publisher |
Lublin University of Technology |
series |
Journal of Computer Sciences Institute |
issn |
2544-0764 |
publishDate |
2020-09-01 |
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. |
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 |
_version_ |
1724422297605898240 |