GraphQL vs. REST: Performance and Scalability Analysis for Serverless Applications

dc.contributor.advisorLloyd, Wes J
dc.contributor.authorJin, Runjie
dc.date.accessioned2025-08-01T22:12:00Z
dc.date.available2025-08-01T22:12:00Z
dc.date.issued2025-08-01
dc.date.submitted2025
dc.descriptionThesis (Master's)--University of Washington, 2025
dc.description.abstractThis thesis presents a comprehensive performance, scalability, and cost comparison of GraphQL and Representational State Transfer (REST) APIs within the context of serverless computing. While REST is the conventional choice for API implementation, its architectural style which is designed for network-based applications, specifically client-server applications, can lead to inefficiencies, such as over-fetching and under-fetching, leading to potential performance and price penalties in pay-per-use serverless environments. This work investigates GraphQL as a flexible and efficient interface alternative for two distinct and representative serverless application use cases: a CPU-bound image processing pipeline and a data-intensive relational database application.For the CPU-bound pipeline, experimental results demonstrate that GraphQL reduces client-perceived Round Trip Time (RTT) by eliminating network latency associated with multiple client-to-server round trips required to orchestrate the workflow with REST. For the data-intensive workload, GraphQL implementations show content-dependent performance compared to REST, with Apollo demonstrating 25-67\% performance improvements over REST on most operations, but worse scalability than REST under very high workloads. Collectively, these findings illustrate that GraphQL provides advantages for serverless applications. The nature of these advantages is context-dependent, from orchestrating tasks in multi-step CPU-bound workflows to data-fetching from a relational database, establishing GraphQL as a compelling architectural alternative for modern cloud-native applications.
dc.embargo.termsOpen Access
dc.format.mimetypeapplication/pdf
dc.identifier.otherJin_washington_0250O_28627.pdf
dc.identifier.urihttps://hdl.handle.net/1773/53260
dc.language.isoen_US
dc.rightsnone
dc.subjectCloud
dc.subjectGraphQL
dc.subjectPerformance
dc.subjectREST
dc.subjectScalability
dc.subjectServerless
dc.subjectComputer science
dc.subject.otherComputer science and systems
dc.titleGraphQL vs. REST: Performance and Scalability Analysis for Serverless Applications
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Jin_washington_0250O_28627.pdf
Size:
1.79 MB
Format:
Adobe Portable Document Format