Naman Vohra

Naman Vohra

StudentID: 2201798420

  • naman.vohra@binus.ac.id
  • (+6221) 720 2222
  • BINUS International, Fx Campus, Fx Sudirman F6, Jakarta

Profile & Qualification

Research Student for Project Initiative

Topic: Implementation of REST API vs GraphQL in Microservice Architecture

Research & Publication

Conference Proceedings

N. Vohra and I. B. Kerthyayana Manuaba, “Implementation of REST API vs GraphQL in Microservice Architecture”, 2022 International Conference on Information Management and Technology (ICIMTech), 2022, pp. 45-50, doi: 10.1109/ICIMTech55957.2022.9915098.

Abstract: Recently, microservices have become a popular web architecture that implements Application Programming Interfaces (API) for main communication between its services. The Representational State Transfer (REST) has been recognized as a popular framework to develop web APIs. However, the presence of “GraphQL,” an alternative technology to REST, leads to a lot of debates and discussions to see which technology is more effective for communication between clients and server. Although many studies have discussed these two technologies, there is still limited study which covers the details on their implementation and performance in a microservice architecture scenario. Therefore, this paper discusses the implementation of REST and GraphQL technologies and performs a comparative study on the performance of each technology in a microservice architecture system, based on an identical freelance marketplace scenario. In addition, two corresponding gateways, the Ocelot and the HotChocolate, were implemented in this study. The gateways were tested in a local system on 17th March 2022. The test was conducted using a tool called “JMeter” which enables three test cases with distinct numbers of users and loop counts to be produced, with each test case impacting the gateways differently. For comparative analysis, the average “response time” and “throughput” parameters were analyzed. Results indicate that in every test case, REST and GraphQL perform comparably when dealing with queries of type POST and PUT but shows a significant performance difference when processing (GET) queries that involve data retrieval from more than one service.

URLhttps://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=9915098&isnumber=9915010

Professional Engagement

Reward & Grants