Comparative Analysis of Rest and GraphQL Technology on Nodejs-Based Api Development

Authors

  • Gede Susrama Mas Diyasa Department of Informatics, Faculty of Computer Science, Universitas Pembangunan Nasional “Veteran” Jawa Timur, Indonesia
  • Gideon Setya Budiwitjaksono Departments of Accounting, Faculty of Economics and Business, Universitas Pembangunan Nasional “Veteran” Jawa Timur, Indonesia
  • Hafidz Amarul Ma’rufi Department of Informatics, Faculty of Computer Science, Universitas Pembangunan Nasional “Veteran” Jawa Timur, Indonesia
  • Ilham Ade Widya Sampurno Department of Informatics, Faculty of Computer Science, Universitas Pembangunan Nasional “Veteran” Jawa Timur, Indonesia

DOI:

https://doi.org/10.11594/nstp.2021.0908

Keywords:

REST, Graph-QL, API, Node-JS, Web Service

Abstract

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

27-04-2021

How to Cite

Comparative Analysis of Rest and GraphQL Technology on Nodejs-Based Api Development . (2021). Nusantara Science and Technology Proceedings, 43-52. https://doi.org/10.11594/nstp.2021.0908

Similar Articles

1-10 of 247

You may also start an advanced similarity search for this article.