Migrating to GraphQL: A Practical Assessment
Abstract
GraphQL is a novel query language proposed by Facebook to implement Web-based APIs. In this paper, we present a practical study on migrating API clients to this new technology. First, we conduct a grey literature review to gain an in-depth understanding on the benefits and key characteristics normally associated to GraphQL by practitioners. After that, we assess such benefits in practice, by migrating seven systems to use GraphQL, instead of standard REST-based APIs. As our key result, we show that GraphQL can reduce the size of the JSON documents returned by REST APIs in 94% (in number of fields) and in 99% (in number of bytes), both median results.
- Publication:
-
arXiv e-prints
- Pub Date:
- June 2019
- DOI:
- 10.48550/arXiv.1906.07535
- arXiv:
- arXiv:1906.07535
- Bibcode:
- 2019arXiv190607535B
- Keywords:
-
- Computer Science - Software Engineering
- E-Print:
- 11 pages. Accepted at 26th International Conference on Software Analysis, Evolution and Reengineering