Performance comparison of programming interfaces on the example of REST API, GraphQL and gRPC

Autor: Mariusz Śliwa, Beata Pańczyk
Jazyk: English<br />Polish
Rok vydání: 2021
Předmět:
Zdroj: Journal of Computer Sciences Institute, Vol 21 (2021)
Druh dokumentu: article
ISSN: 2544-0764
DOI: 10.35784/jcsi.2744
Popis: The article presents a comparison of the performance of three ways of implementing programming interfaces used in web applications - REST, GraphQL and gRPC. For the purposes of the research, three applications were developed, which were made in each of the indicated technologies and with the same functionalities. The applications were used for performance tests carried out with the use of the k6 tool. The applications are used to measure the execution time, performance and volume of processed data during display and adding operations. The obtained results allowed for the conclusion that the best interface in terms of performance (measured as the number of transactions per second) and server response time is REST. However, in terms of the smallest data volume, gRPC is the best choice.
Databáze: Directory of Open Access Journals