REST and GraphQL: A comparative analysis in mobile network environments
2024 (English) Independent thesis Basic level (degree of Bachelor), 20 credits / 30 HE credits
Student thesis Alternative title
REST och GraphQL : En jämförelse analys i mobila nätverks miljöer (Swedish)
Abstract [en]
This study investigates the performance differences between REST and GraphQL, focusing on their efficiency in data fetching within different network environments, specifically in terms of WiFi and 4G mobile networks. As microservices and API architectures have evolved, REST has become a standard. However, GraphQL is a promising and interesting alternative, addressing REST issues such as over-fetching.
This study aims to answer two primary research questions: 1) How does GraphQL perform in relation to REST with regard to response times, throughput, and payload size in both regular WiFi and 4G settings? And 2) in what scenarios is GraphQL most efficient?
To answer these questions, a series of experiments was conducted using a locally developed GraphQL server and a REST API, both benchmarked under various user load scenarios using Apache JMeter (for the rest of the paper to be referred to as “JMeter”).
The findings indicate that GraphQL demonstrates an ability to reduce payload sizes and decrease response times and throughput, particularly in mobile network environments. It is also shown that it matters how GraphQL is implemented in terms of what type of source the data is fetched from, demonstrating significant differences between services such as Azure Cosmos DB and Elasticsearch.
Place, publisher, year, edition, pages 2024. , p. 70
Keywords [en]
GraphQL, REST, microservices, API, data fetching, payload optimization
National Category
Information Systems, Social aspects
Identifiers URN: urn:nbn:se:his:diva-24365 OAI: oai:DiVA.org:his-24365 DiVA, id: diva2:1883800
Subject / course Informationsteknologi
Educational program Information Systems
Supervisors
Examiners
Note Stavningsvarierad titel:
REST och GraphQL: En jämförelseanalys i mobila nätverksmiljöer
2024-07-112024-07-112025-09-29 Bibliographically approved