Comparative Analysis of Rest and GraphQL Technology on Nodejs-Based Api Development
DOI:
https://doi.org/10.11594/nstp.2021.0908Keywords:
REST, Graph-QL, API, Node-JS, Web ServiceAbstract
Web service is a method of connecting servers and client applications. There are several types of technology in developing a web service, such as REST and Graph-QL. Graph-QL is an alternative technology created by Facebook to correct REST technology's shortcomings, especially in the data presentation section. Graph-QL provides an alternative where the client application can determine for them what data is needed. This paper analyzes the performance of the two technologies to determine which technology is suitable for their needs. The analysis carried out is to compare the response speed and data efficiency to optimize the available bandwidth. The development model uses the waterfall model, which consists of research, design, implementation, and testing. As a test object, two Node-JS based applications were developed with the Express Framework, which applied REST and Graph-QL concepts on each test object. The results obtained are that REST has better performance than Graph-QL in its response speed. On the other hand, Graph-QL also excels in data presentation by client application requests to optimize the available bandwidth.
Downloads
Published
Issue
Section
License
Copyright (c) 2021 Nusantara Science and Technology Proceedings

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this proceedings agree to the following terms:
Authors retain copyright and grant the Nusantara Science and Technology Proceedings right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this proceeding.
Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the proceedings published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this proceeding.
Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See the Effect of Open Access).