GraphQL vs. REST: A Performance and Cost Investigation for Serverless Applications

Serverless computing simplifies application deployment by removing the need for infrastructure management, with RESTful APIs being the common interface. However, REST can lead to inefficiencies such as data over-fetching and under-fetching, which impact performance and cost. This paper investigates GraphQL as an alternative to REST for serverless functions using a serverless image processing pipeline. We evaluate roundtrip time (RTT), scalability, and cost, while also examining managed (AWS AppSync) and unmanaged (Apollo Server) GraphQL hosting solutions. Our results show that GraphQL generally outperforms REST with respect to pipeline RTT, especially when there is high network latency, offering a potentially better fit for optimizing data transfer in serverless applications.

Authors

Institutions

Publication Details

Published
2024-11-27
DOI
https://doi.org/10.1145/3702634.3702956
Citations
3
Primary Topic
IoT and Edge/Fog Computing
Type
article
Field-Weighted Citation Impact
1.05
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

GraphQL vs. REST: A Performance and Cost Investigation for Serverless Applications

Robert Cordingly, Wes Lloyd, Dongfang Zhao, Runjie Jin
3 citations
IoT and Edge/Fog Computing
1.05
article

GraphQL vs. REST: A Performance and Cost Investigation for Serverless Applications

Robert Cordingly, Wes Lloyd, Dongfang Zhao, Runjie Jin
article en
3 citations

Abstract

Serverless computing simplifies application deployment by removing the need for infrastructure management, with RESTful APIs being the common interface. However, REST can lead to inefficiencies such as data over-fetching and under-fetching, which impact performance and cost. This paper investigates GraphQL as an alternative to REST for serverless functions using a serverless image processing pipeline. We evaluate roundtrip time (RTT), scalability, and cost, while also examining managed (AWS AppSync) and unmanaged (Apollo Server) GraphQL hosting solutions. Our results show that GraphQL generally outperforms REST with respect to pipeline RTT, especially when there is high network latency, offering a potentially better fit for optimizing data transfer in serverless applications.

University of Washington Tacoma (US)
Openalex Percentile: Top 20%
IoT and Edge/Fog Computing
1.05
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

GraphQL vs. REST: A Performance and Cost Investigation for Serverless Applications — Robert Cordingly, Wes Lloyd, et al. · (2024) | TGRS Research Map | TGRS