Handling Communication via APIs for Microservices
- URL: http://arxiv.org/abs/2308.01302v1
- Date: Wed, 2 Aug 2023 17:40:34 GMT
- Title: Handling Communication via APIs for Microservices
- Authors: Vini Kanvar, Ridhi Jain and Srikanth Tamilselvam
- Abstract summary: We discuss the challenges with conventional techniques of communication using and propose an alternative way of ID-passing via APIs.
We also devise an algorithm to reduce the number of APIs.
- Score: 6.5499625417846685
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Enterprises in their journey to the cloud, want to decompose their monolith
applications into microservices to maximize cloud benefits. Current research
focuses a lot on how to partition the monolith into smaller clusters that
perform well across standard metrics like coupling, cohesion, etc. However,
there is little research done on taking the partitions, identifying their
dependencies between the microservices, exploring ways to further reduce the
dependencies, and making appropriate code changes to enable robust
communication without modifying the application behaviour.
In this work, we discuss the challenges with the conventional techniques of
communication using JSON and propose an alternative way of ID-passing via APIs.
We also devise an algorithm to reduce the number of APIs. For this, we
construct subgraphs of methods and their associated variables in each class and
relocate them to their more functionally aligned microservices. Our
quantitative and qualitative studies on five public Java applications clearly
demonstrate that our refactored microservices using ID have decidedly better
time and memory complexities than JSON. Our automation reduces 40-60\% of the
manual refactoring efforts.
Related papers
- LLM-Generated Microservice Implementations from RESTful API Definitions [3.740584607001637]
This paper presents a system that uses Large Language Models (LLMs) to automate the API-first development of software.
The system generates OpenAPI specification, generating server code from it, and refining the code through a feedback loop that analyzes execution logs and error messages.
The system has the potential to benefit software developers, architects, and organizations to speed up software development cycles.
arXiv Detail & Related papers (2025-02-13T20:50:33Z) - Reinforcement Learning for Long-Horizon Interactive LLM Agents [56.9860859585028]
Interactive digital agents (IDAs) leverage APIs of stateful digital environments to perform tasks in response to user requests.
We present a reinforcement learning (RL) approach that trains IDAs directly in their target environments.
We derive LOOP, a data- and memory-efficient variant of proximal policy optimization.
arXiv Detail & Related papers (2025-02-03T18:35:42Z) - Semantic Dependency in Microservice Architecture: A Framework for Definition and Detection [0.0]
This paper introduces the Semantic Dependency Matrix as an instrument to address these challenges.
It shows that these hidden dependencies can exist independently of endpoint data dependencies, revealing critical connections that might otherwise be overlooked.
arXiv Detail & Related papers (2025-01-20T23:34:24Z) - ExploraCoder: Advancing code generation for multiple unseen APIs via planning and chained exploration [70.26807758443675]
ExploraCoder is a training-free framework that empowers large language models to invoke unseen APIs in code solution.
We show that ExploraCoder significantly improves performance for models lacking prior API knowledge, achieving an absolute increase of 11.24% over niave RAG approaches and 14.07% over pretraining methods in pass@10.
arXiv Detail & Related papers (2024-12-06T19:00:15Z) - A Solution-based LLM API-using Methodology for Academic Information Seeking [49.096714812902576]
SoAy is a solution-based LLM API-using methodology for academic information seeking.
It uses code with a solution as the reasoning method, where a solution is a pre-constructed API calling sequence.
Results show a 34.58-75.99% performance improvement compared to state-of-the-art LLM API-based baselines.
arXiv Detail & Related papers (2024-05-24T02:44:14Z) - FedYolo: Augmenting Federated Learning with Pretrained Transformers [61.56476056444933]
In this work, we investigate pretrained transformers (PTF) to achieve on-device learning goals.
We show that larger scale shrinks the accuracy gaps between alternative approaches and improves robustness.
Finally, it enables clients to solve multiple unrelated tasks simultaneously using a single PTF.
arXiv Detail & Related papers (2023-07-10T21:08:52Z) - Chain-of-Skills: A Configurable Model for Open-domain Question Answering [79.8644260578301]
The retrieval model is an indispensable component for real-world knowledge-intensive tasks.
Recent work focuses on customized methods, limiting the model transferability and scalability.
We propose a modular retriever where individual modules correspond to key skills that can be reused across datasets.
arXiv Detail & Related papers (2023-05-04T20:19:39Z) - Reclaimer: A Reinforcement Learning Approach to Dynamic Resource
Allocation for Cloud Microservices [4.397680391942813]
We introduce Reclaimer, a deep learning model that adapts to changes in the number and behavior of runtime changes in order to minimize CPU core allocation while meeting requirements.
When evaluated with two micro-service-based applications, Reclaimer reduces the mean CPU core allocation by 38.4% to 74.4% relative to the industry-standard scaling solution.
arXiv Detail & Related papers (2023-04-17T01:44:05Z) - Monolith to Microservices: Representing Application Software through
Heterogeneous GNN [11.381828510219897]
Microservice architectures are increasingly used as they advocate building an application through multiple smaller sized, loosely coupled functional services.
This approach has made programming architecture as the natural choice for cloud based applications.
But the challenges in the automated separation of functional modules for the already written monolith code slows down their migration task.
We deduce this traditional application problem to a heterogeneous graph based clustering task.
Our solution is the first of its kind to leverage heterogeneous graph neural network to learn representations of such diverse software entities.
arXiv Detail & Related papers (2021-12-01T15:27:45Z) - Low-Resource Domain Adaptation for Compositional Task-Oriented Semantic
Parsing [85.35582118010608]
Task-oriented semantic parsing is a critical component of virtual assistants.
Recent advances in deep learning have enabled several approaches to successfully parse more complex queries.
We propose a novel method that outperforms a supervised neural model at a 10-fold data reduction.
arXiv Detail & Related papers (2020-10-07T17:47:53Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.