Efficiency study of GraphQL and REST Microservices in Docker containers: A computational experiment
Open Access
- 13 February 2025
- journal article
- Published by Salud, Ciencia y Tecnologia in Data and Metadata
- Vol. 4, 199
Abstract
Introduction: In the constant evolution of technology, implementing new services in computer systems is crucial. However, the integration of these services presents problems and certain challenges in the deployment of applications. Technologies such as Docker and microservices architectures are alternatives to alleviate such integration. The aim was to compare the performance efficiency between microservices architectures implemented with GraphQL and REST, deployed in Docker and localhost environments. Methods: A computational experiment was conducted following the Wholin methodology to compare the performance efficiency of microservices architectures. The experimental design consisted of deploying both a GraphQL API and a REST API with identical functionalities in Docker containers and a localhost environment. Both APIs were consumed under controlled complexity and data volume conditions, ensuring a fair evaluation. Results: The experiment showed that the average response time in the Docker environment was significantly lower compared to the localhost environment. Also, the GraphQL API outperformed the REST API. In addition, a research artifact including all the study materials was published on Zenodo to support the replicability of the experiment. Conclusion: The architecture deployed in Docker is more efficient for microservices execution, particularly when GraphQL is used.Keywords
This publication has 19 references indexed in Scilit:
- Computational Experiments in Computer Science Research: A Literature SurveyIEEE Access, 2024
- Research artifacts for human-oriented experiments in software engineering: An ACM badges-driven structure proposalJournal of Systems and Software, 2024
- Design and Research of Adaptive Filter Microservices Based on Cloud-Native Architecture2024
- GraphQL or REST for Mobile Applications?2022
- Empirical Strategies in Software Engineering Research: A Literature Survey2021
- REST vs GraphQL: A Controlled Experiment2020
- Research on Micro Service Architecture of Power Information System Based on Docker ContainerIOP Conference Series: Earth and Environmental Science, 2020
- Overcoming Security Challenges in Microservice Architectures2018
- From Monolith to Microservices: Lessons Learned on an Industrial Migration to a Web Oriented Architecture2017
- Experimentation in Software Engineering2012