REST vs GraphQL: A Controlled Experiment

03/10/2020
by   Gleison Brito, et al.
0

GraphQL is a novel query language for implementing service-based software architectures. The language is gaining momentum and it is now used by major software companies, such as Facebook and GitHub. However, we still lack empirical evidence on the real gains achieved by GraphQL, particularly in terms of the effort required to implement queries in this language. Therefore, in this paper we describe a controlled experiment with 22 students (10 undergraduate and 12 graduate), who were asked to implement eight queries for accessing a web service, using GraphQL and REST. Our results show that GraphQL requires less effort to implement remote service queries when compared to REST (9 vs 6 minutes, median times). These gains increase when REST queries include more complex endpoints, with several parameters. Interestingly, GraphQL outperforms REST even among more experienced participants (as is the case of graduate students) and among participants with previous experience in REST, but no previous experience in GraphQL.

READ FULL TEXT

page 6

page 7

page 8

research
06/18/2019

Migrating to GraphQL: A Practical Assessment

GraphQL is a novel query language proposed by Facebook to implement Web-...
research
09/21/2018

Generating GraphQL-Wrappers for REST(-like) APIs

GraphQL is a query language and thereupon-based paradigm for implementin...
research
08/15/2023

Assessing requirements engineering and software test alignment – Five case studies

The development of large, software-intensive systems is a complex undert...
research
11/26/2022

EasyMLServe: Easy Deployment of REST Machine Learning Services

Various research domains use machine learning approaches because they ca...
research
09/29/2021

Contribution To Individualized Environmental Education

Abstract. In this work, we modify the Holland’ s methodology for the cat...
research
09/29/2021

Holland’s Method as a Material in Environmental Education

Abstract: In this work, the Holland’s methodology is modified for the ca...
research
11/06/2017

Reducing Certification Granularity to Increase Adaptability of Avionics Software

A strong certification process is required to insure the safety of airpl...

Please sign up or login with your details

Forgot password? Click here to reset