Return to search

Performance comparison of REST vs GraphQL in different web environments : Node.js and Python

Application Programming Interfaces (APIs) are still relevant today in most modernweb applications. Some studies have compared the performance of RepresentationState Transfer (REST) and GraphQL in order to assess scenarios in which one out-performs the other. However, there is a lack of comparative studies exploring thescenarios of different programming languages. In this study/thesis, we focused onNode.js and Python, which are widely utilized by developers, due to their popular-ity. We aimed to fill this research gap by examining and comparing the scenariosof these two languages. We also considered comparing performance-centric frame-works like Fastify and FastAPI and traditional/feature-rich frameworks like Expressand Flask. Two applications were built for each framework comparing their perfor-mance in terms of response time, throughput and server-side resources. These weretested with JMeter and a custom middleware. Results show that GraphQL outper-forms REST in most scenarios. The environment that performed the best was Fastifywith GraphQL sacrificing CPU Usage.

Identiferoai:union.ndltd.org:UPSALLA1/oai:DiVA.org:lnu-121877
Date January 2023
CreatorsNilsson, Edward, Demir, Dennis
PublisherLinnéuniversitetet, Institutionen för datavetenskap och medieteknik (DM)
Source SetsDiVA Archive at Upsalla University
LanguageEnglish
Detected LanguageEnglish
TypeStudent thesis, info:eu-repo/semantics/bachelorThesis, text
Formatapplication/pdf
Rightsinfo:eu-repo/semantics/openAccess

Page generated in 0.0015 seconds