lnu.sePublikasjoner
RefereraExporteraLink to record
Permanent link

Direct link
Referera
Referensformat
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Annet format
Fler format
Språk
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Annet språk
Fler språk
Utmatningsformat
  • html
  • text
  • asciidoc
  • rtf
A Comparative Performance Study of REST and GraphQL APIs: Latency and Throughput under Varying Query Complexity
Linnéuniversitetet, Fakulteten för teknik (FTK), Institutionen för datavetenskap och medieteknik (DM).
2026 (engelsk)Independent thesis Basic level (degree of Bachelor), 10 poäng / 15 hpOppgave
Abstract [en]

Modern web and distributed systems rely heavily on Application Programming Interfaces (APIs), with Representational State Transfer (REST) and GraphQL serving as the primary architectural styles. While performance metrics such as latency and throughput are crucial for user experience and system efficiency, existing research often lacks a detailed analysis of how these APIs perform under varying levels of query complexity. This thesis investigates the performance differences between REST and GraphQL APIs by examining their behavior under comparable workloads and evaluating the impact of increasing query complexity on scalability. Using a design science methodology, a controlled experimental environment was developed with Python, Flask, and SQLite, while performance was evaluated using the Locust load testing tool. Measurements were conducted across three levels of query complexity, ranging from simple lookups to deeply nested relational data, under workloads of 50, 200, and 500 concurrent users. The results indicate that REST consistently delivers lower latency and higher throughput across all test scenarios, demonstrating superior scalability under high concurrency. While both architectures perform similarly for simple queries, GraphQL performance degrades more substantially as query complexity increases due to the additional server-side overhead associated with query parsing and resolver execution. However, GraphQL offers advantages when retrieving deeply nested relational data, where equivalent functionality in REST may require multiple client requests.  The findings suggest that REST is better suited for high-volume, performance-critical systems, whereas GraphQL is more appropriate for applications requiring flexible and efficient retrieval of complex, interconnected data.

sted, utgiver, år, opplag, sider
2026. , s. 45
Emneord [en]
REST APIs, GraphQL, API Performance, Latency, Throughput, Query Complexity
HSV kategori
Identifikatorer
URN: urn:nbn:se:lnu:diva-149324OAI: oai:DiVA.org:lnu-149324DiVA, id: diva2:2096450
Fag / kurs
Computer Science
Utdanningsprogram
Web Development Programme, 180 credits
Veileder
Examiner
Tilgjengelig fra: 2026-08-29 Laget: 2026-08-28 Sist oppdatert: 2026-08-29bibliografisk kontrollert

Open Access i DiVA

fulltext(2350 kB)37 nedlastinger
Filinformasjon
Fil FULLTEXT01.pdfFilstørrelse 2350 kBChecksum SHA-512
903ab3087347446196b1c746b8069b791d2276dacd43575385152b892c819c0d720bb7b2b89dd058f516d4a113b72ed5aefbe3c45db62c4d04870db6f2fe8a58
Type fulltextMimetype application/pdf

Av organisasjonen

Søk utenfor DiVA

GoogleGoogle Scholar
Antall nedlastinger er summen av alle nedlastinger av alle fulltekster. Det kan for eksempel være tidligere versjoner som er ikke lenger tilgjengelige

urn-nbn

Altmetric

urn-nbn
Totalt: 213 treff
RefereraExporteraLink to record
Permanent link

Direct link
Referera
Referensformat
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Annet format
Fler format
Språk
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Annet språk
Fler språk
Utmatningsformat
  • html
  • text
  • asciidoc
  • rtf