REST/GraphQL APIs for Dynamic Analytics

Authors

  • Ramesh Kasarla Principal Engineer, Comcast cable communications, VA, USA. Author

DOI:

https://doi.org/10.63282/3050-9246.IJETCSIT-V7I1P136

Keywords:

REST API, Graphql, Dynamic Analytics, API Architectures, Graphql Aggregation

Abstract

Federated Learning (FL) has emerged as a transformative paradigm for distributed machine learning, enabling model training across decentralized edge devices while preserving data privacy. This methodology is critical for sectors handling sensitive information, such as finance, healthcare, and the Internet of Things (IoT). Despite its benefits, the coordination and communication overhead between distributed nodes remain significant challenges. This paper evaluates the efficacy of REST and GraphQL API architectures in facilitating FL workflows. While REST APIs are favored for their statelessness and simplicity, GraphQL offers enhanced flexibility and efficiency by enabling precise data fetching—a vital feature for bandwidth-constrained decentralized systems. We provide a comparative analysis of these paradigms across performance, security, and scalability metrics, specifically regarding data synchronization and model aggregation. Finally, we propose design best practices for developing APIs that support robust, compliant, and efficient federated prediction systems.

Downloads

Download data is not yet available.

References

[1] G. Anthony Reina et al., “OpenFL: An Open-Source Framework for Federated Learning,” Arxiv Preprint, pp. 1-22, 2021. [CrossRef] [Google Scholar] [Publisher Link]

[2] Nicolas Kourtellis, Kleomenis Katevas, and Diego Perinom,” FLaaS: Federated Learning as a Service,” DistributedML'20: Proceedings of the 1st Workshop on Distributed Machine Learning, pp. 7-13, 2020. [CrossRef] [Google Scholar] [Publisher Link]

[3] Ivan Kholod et al., “Open-Source Federated Learning Frameworks for IoT: A Comparative Review and Analysis,” Sensors, vol. 21, no. 1, pp. 1-22, 2020. [CrossRef] [Google Scholar] [Publisher Link]

[4] Jan Stuecke, Top 7 Open-Source Frameworks for Federated Learning, APHERIS, 2024. [Online]. Available: https://www.apheris.com/resources/blog/top-7-open-source-frameworks-for-federated-learning

[5] What’s the Difference Between GraphQL and REST?, AWS, [Online]. Available: https://aws.amazon.com/compare/the-difference-between-graphql-and-rest/

[6] Leon Witt et al., “Decentral and Incentivized Federated Learning Frameworks: A Systematic Literature Review,” IEEE Internet of Things Journal, vol. 10, no. 4, pp. 3642-3663, 2023. [CrossRef] [Google Scholar] [Publisher Link]

[7] Xiaoyuan Liu et al., “Unified: A Benchmark for Federated Learning Frameworks,” Arxiv Preprint, pp. 1-13, 2022. [CrossRef] [Google Scholar] [Publisher Link]

[8] Cross-Silo and Cross-device Federated Learning on Google Cloud, 2024. [Online]. Available: https://cloud.google.com/architecture/cross-silo-cross-device-federated-learning-google-cloud

[9] What is Federated Architecture? Graphql [Online]. Available: https://graphql.com/learn/federated-architecture/

[10] Kewei Cheng et al., “SecureBoost: A Lossless Federated Learning Framework,” IEEE Intelligent Systems, vol. 36, no. 6, pp. 87-98, 2021. [CrossRef] [Google Scholar] [Publisher Link]

[11] Matheus Seabra, Marcos Felipe Nazário, and Gustavo Pinto, “REST or GraphQL? A Performance Comparative Study,” Proceedings of the XIII Brazilian Symposium on Software Components, Architectures, and Reuse, pp. 123-132, 2019. [CrossRef] [Google Scholar] [Publisher Link]

[12] Sin Kit Lo et al., “Architectural Patterns for the Design of Federated Learning Systems,” Journal of Systems and Software, vol. 191, 2022. [CrossRef] [Google Scholar] [Publisher Link]

[13] Hongyi Zhang, Jan Bosch, and Helena Holmström Olsson, “Federated Learning Systems: Architecture Alternatives,” 27th Asia-Pacific Software Engineering Conference (APSEC), Singapore, Singapore, pp. 385-394, 2020. [CrossRef] [Google Scholar] [Publisher Link]

[14] Federated Learning Background and Architecture, NVIDIA Clara Train 3.1, [Online]. Available: https://docs.nvidia.com/clara/clara-train-archive/3.1/federated-learning/fl_background_and_arch.html

[15] Why GraphQL Needs an Open Federation Approach, TheNewstack, [Online]. Available: https://thenewstack.io/why-graphql-needs-an-open-federation-approach/

[16] Facebook, I.: GraphQL — A query language for your API (2016). https://graphql. org/

[17] Ramesh Kasarla.: A Federated Learning Approach for Predicting Resource Allocation in Multi-Access Edge Computing. https://doi.org/10.63282/3050-9246.IJETCSIT-V6I4P106

[18] Pautasso, C.: RESTful web services: principles, patterns, emerging technologies. In: Web Services Foundations, pp. 31–51. Springer, New York (2014). https://doi. org/10.1007/978-1-4614-7518-7 2

[19] Patrick Foley et al. “OpenFL: The Open Federated Learning Library,” Physics in Medicine & Biology, vol. 67, no. 21, 2022. [CrossRef] [Google Scholar] [Publisher Link]

[20] Singh, A., Jeyanthi, N.: MVP Architecture model with single endpoint access for displaying COVID 19 patients information dynamically. In: Proceedings - 2020 12th International Conference on Computational Intelligence and Communication Networks, CICN 2020, pp. 471–476. IEEE, Bhimtal (2020). https://doi.org/10.1109/CICN49253.2020.9242573, https://ieeexplore. ieee.org/abstract/document/9242573

[21] ISO/IEC: NTE INEN-ISO/IEC 25010. International organization for standardization, Geneva, Switzerland, 1 edn. (2015).

Published

2026-03-03

Issue

Section

Articles

How to Cite

1.
Kasarla R. REST/GraphQL APIs for Dynamic Analytics. IJETCSIT [Internet]. 2026 Mar. 3 [cited 2026 Mar. 12];7(1):237-44. Available from: https://ijetcsit.org/index.php/ijetcsit/article/view/617

Similar Articles

11-20 of 291

You may also start an advanced similarity search for this article.