
play functions. While GraphQL may not consis-
tently outperform REST in scenarios involving over-
fetching, it demonstrates comparable performance for
single requests, positioning it as a viable alternative
to REST. Furthermore, in cases of under-fetching,
GraphQL proves to be more efficient than REST, as
it allows clients to retrieve precisely the data they
need in a single query. In environments where under-
fetching occurs frequently, GraphQL emerges as a
more practical and efficient API architecture com-
pared to REST (Vadlamani et al., 2021).
Authors in (Lawi et al., 2021) found that REST
was 51% faster than GraphQL when evaluating the
performance of the two systems in a monolithic archi-
tectural application . However, this result is specific
to monolithic architectures. C. Pautass et al. in (Pau-
tasso et al., 2008) attempted to compare GraphQL and
REST but did not consider the microservices domain.
When microservices are not fully considered, conclu-
sions about REST can be questionable, as an architec-
ture style is defined by the combination of constraints,
not just individual ones. Metrics are implementation-
dependent and, thus, not always suitable for judging
performance across different domains. In (Brito and
Valente, 2020), they involved 22 graduate and under-
graduate students, aimed to compare the effort and
time required to develop queries for a web service us-
ing REST and GraphQL. The experiment took place
in a controlled setting, with participants randomly as-
signed to either the REST or GraphQL group. The
results indicated that implementing remote service
queries using REST required significantly more ef-
fort than with GraphQL, particularly for complex end-
points and multiple inputs, leading to increased devel-
opment time and effort.
Interestingly, the experiment also showed that
even participants with no prior knowledge of
GraphQL could easily implement queries, suggest-
ing that GraphQL has a lower learning curve com-
pared to REST, making it more accessible to devel-
opers (Amareen et al., 2024). However, one limita-
tion of the experiment was the lack of consideration
for microservices as a constraint. Brito argues that
this limitation is not significant since most developers
work with monolithic architectures. Nevertheless, the
results could differ if microservices were taken into
account. In (Erlandsson and Remes, 2020) Brito’s
experiment provides valuable insights into the rela-
tive merits of REST and GraphQL, suggesting that
GraphQL is a more efficient and easier-to-use option
for developing remote service queries. However, it is
important to note that these findings may not be gen-
eralizable to all development contexts. Despite these
limitations, the experiment provides valuable insights
into the relative merits of REST and GraphQL. The
results suggest that GraphQL is a more efficient and
easier-to-use option for developing remote service
queries. The asynchronous JavaScript and XML apps
designed by Mesbah and van Deursen are also rele-
vant here. Their work connects to Single Page Appli-
cations (SPAs) (Mesbah and Van Deursen, 2007), the
successors to what they referred to as ”AJAX applica-
tions,” which often utilize GraphQL. They precisely
define factors to consider when developing such apps
using the REST method, such as delta communica-
tion. However, rather than viewing these systems as
variations of existing models, they propose a new ar-
chitectural style that addresses multiple factors previ-
ously covered by older models. Systems using SPAs
can be seen as composites, for example, employing
the Model-View-Controller (MVC) style for the front
end and REST for the backend. Shaw et al. (Shaw and
Clements, 1997) Presents a classification of architec-
tural styles based on their fundamental elements, in-
cluding components and connectors, as well as their
handling of control mechanisms, data management,
and the interplay between control and data aspects.
However, this classification is disconnected from the
specific requirements of applications, focusing only
on technical features like the layout or structure of
the final system. This makes it difficult for a designer
to choose an architecture, and thus, their classifica-
tion methodology is not appropriate for comparing
GraphQL and REST models, as it does not offer guid-
ance on when to use each for creating an API. Vohra
and Manuaba This research aims to fill this gap by
conducting a quantitative comparison of REST and
GraphQL in a scalable microservices environment.
It will explore performance under real-world condi-
tions, including complex queries and varying levels
of concurrency, providing developers with the empir-
ical data necessary to make informed decisions about
API models in microservices.
Authors in (Vohra and Manuaba, 2022) ex-
plored performance comparisons between REST and
GraphQL within a microservices architecture frame-
work, using a freelance marketplace as their testbed.
They employed Ocelot for REST and HotChocolate
for GraphQL as gateways, using ”JMeter” to simu-
late various user scenarios (Niswar et al., 2024). Per-
formance parameters like average response time and
throughput were analyzed to highlight differences be-
tween REST and GraphQL under diverse scenarios.
While they found similar performance for POST and
PUT queries, significant discrepancies arose in GET
queries that retrieved data from multiple services. De-
spite the valuable insights from Vohra and Manuaba’s
study, several limitations must be considered. Firstly,
Performance Evaluation of REST and GraphQL API Models in Microservices Software Development Domain
85