REST API vs GraphQL
: A literature and experimental study

  • Tobias Andersson
  • Håkan Reinholdsson

Student thesis: Bachelor

Abstract

The purpose of this study is to compare the two architectural techniques REST and GraphQL. This thesis will compare the two techniques and what defines them. A literature study and experimental study are carried out by the researchers. Four applications have been developed that include the ability to disable and to enable caching for both technologies to test the performance effect of caching. Earlier work has not covered the effects on caching related to these two frameworks. The literature study results point to that REST services are up to date and GraphQL is a technique with a shorter history, but that has declared growth in the industry and is a well suited choice for example when bandwidth matters in mobile phone applications. In the experimental study the tests showed slightly better results on average for REST API in terms of total response time (ms). Depending on the intended project there are many factors that need to be evaluated before making a decision on which framework to use. 

Date of Award2021-Jun-24
Original languageEnglish
SupervisorFredrik Stridh (Supervisor) & Dawit Mengistu (Examiner)

Educational program

  • Bachelor programme in Computer Software Development

Courses and Subjects

  • Miscellaneous

University credits

  • 15 HE credits

Swedish Standard Keywords

  • Computer Sciences (10201)
  • Information Systems, Social aspects (50804)
  • Human Computer Interaction (10204)

Keywords

  • rest api
  • graphql
  • caching
  • api

Cite this

'