# US 2025/0156227 A1 · Scaling micro-services using dependency graphs

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156227 A1
- Document ID: US20250156227A1
- Status: Published application
- Kind: A1
- Application number: 18/408,696
- Filed: 2024-01-10
- Published: 2025-05-15
- Earliest claimed: 2023-11-15
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Daniel Pittner; Benjamin Isinger; Christian Habermann; Sugandha Agrawal; Jeremias Werner
- Web page: https://patentgrep.com/patent/US20250156227A1

## CPC

- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/5055: {considering software capabilities, i.e. software resources associated or available to the machine}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for reduced latency between software services operating in a service mesh, where the software services are instantiated when fulfilling requests is disclosed. The method comprises providing a plurality of services which fulfill a request, where communication between the services is based on support components, The method also comprises creating a directed dependency graph of the plurality of services by tracing request flows between the plurality of services, thereby nodes of the directed dependency graph represent services and edges of the directed dependency graph represent used communication paths between selected ones of the services, determining a dependent service for an incoming request to a selected one of the plurality of services based on the directed dependency graph, and starting an instance of the dependent service together with the selected one of the plurality of services.

## Claims

### Claim 1

A computer-implemented method for reduced latency between software services operating in a service mesh, wherein said software services are instantiated when fulfilling requests, said method comprising.
providing a plurality of services which fulfill a request at least in part in collaboration, wherein communication between said services is based on support components, wherein each service is linked to one of said support components;
creating a directed dependency graph of said plurality of services by tracing request flows between said plurality of services, thereby nodes of said directed dependency graph represent services and edges of said directed dependency graph represent used communication paths between selected ones of said services;
determining a dependent service for an incoming request to a selected one of said plurality of services based on said directed dependency graph; and
starting an instance of said dependent service together with said selected one of said plurality of services.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
starting a plurality of said dependent service together with said selected service depending on a number of incoming requests to said selected service.

### Claim 3 (depends on 1)

The method according to claim 1, wherein said directed dependency graph is a weighted directed dependency graph, wherein said weights relate to said edges of said weighted directed dependency graph representing a ratio between inbound and outbound requests to said services.

### Claim 4 (depends on 3)

The method according to claim 3, wherein said ratio between started services and dependent started services is determined based on respective weights of said edges between said related services.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
storing said directed dependency graph in a database; and
accessing records of said database by a scheduler adapted for instantiating services in said service mesh.

### Claim 6 (depends on 2)

The method according to claim 2, wherein said starting said plurality of said dependent service together with said selected service, further comprises
co-locating an instance of a service of said plurality of services together with an instance of a called dependent service; and
co-locating services of a plurality of services having a predefined affinity value to each other.

### Claim 7 (depends on 6)

The method according to claim 6, wherein said co-location is dependent on a weight value of said edge between said service of said plurality of services together and said called dependent service in said directed dependency graph.

### Claim 8 (depends on 1)

The method according to claim 1, wherein said directed dependency graph is a plurality of not connected directed dependency graphs; and
wherein services relating to different directed dependency graphs are instantiated on different nodes underlying said service mesh.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising:
scaling-down said number of instances of a dependent service together with said selected one of said plurality of services if a number of incoming requests are decreasing.

### Claim 10 (depends on 9)

The method according to claim 9, wherein a factor of said scaling down depends on a ratio that is determined based on respective weights of said edges between said respective services.

### Claim 11

A distributed multi-services system for reducing latency for reduced latency between software services operating in a service mesh, wherein said software services are instantiated when fulfilling requests, said system comprising
one or more processors and a memory operatively coupled to said one or more processors, wherein said memory stores program code portions which, when executed by said one or more processors, enable said one or more processors to:
provide a plurality of services which fulfill a request at least in part in collaboration, wherein communication between said services is based on support components, wherein each service is linked to one of said support components;
create a directed dependency graph of said plurality of services by tracing request flows between said plurality of services, thereby nodes of said directed dependency graph represent services and edges of said directed dependency graph represent used communication paths between selected ones of said services;
determine a dependent service for an incoming request to a selected one of said plurality of services based on said directed dependency graph; and
start an instance of said dependent service together with said selected one of said plurality of services.

### Claim 12 (depends on 11)

The system according to claim 11, further comprising:
starting a plurality of said dependent service together with said selected service depending on a number of incoming requests to said selected service.

### Claim 13 (depends on 11)

The system according to claim 11, wherein said directed dependency graph is a weighted directed dependency graph, wherein said weights relate to said edges of said weighted directed dependency graph representing a ratio between inbound and outbound requests to said services.

### Claim 14 (depends on 13)

The system according to claim 13, wherein said ratio between started services and dependent started services is determined based on respective weights of said edges between said related services.

### Claim 15 (depends on 11)

The system according to claim 11, wherein said one or more processors are also enabled to:
store said directed dependency graph in a database; and
access records of said database by a scheduler adapted for instantiating services in said service mesh.

### Claim 16 (depends on 12)

The system according to claim 12, wherein said one or more processors are, during said starting said plurality of said dependent service together with said selected service, also enabled to:
co-locate an instance of a service of said plurality of said services together with an instance of a called dependent service;
co-locate services of a plurality of services having a predefined affinity value to each other.

### Claim 17 (depends on 16)

The system according to claim 16, wherein said co-location is dependent on a weight value of said edge between said service of said plurality of said services together and said called dependent service in said directed dependency graph.

### Claim 18 (depends on 11)

The system according to claim 11, wherein said directed dependency graph is a plurality of not connected directed dependency graphs, and
wherein services relating to different directed dependency graphs are instantiated on different nodes underlying said service mesh.

### Claim 19 (depends on 11)

The system according to claim 11, wherein said one or more processors are also enabled to:
scale-down said number of instances of a dependent service together with said selected one of said plurality of services if a number of incoming requests are decreasing.

### Claim 20

A computer program product for reducing latency for reduced latency between software services operating in a service mesh, wherein said software services are instantiated when fulfilling requests, said computer program product comprising a computer readable storage medium having program instructions embodied therewith, said program instructions being executable by one or more computing systems or controllers to cause said one or more computing systems to:
provide a plurality of services which fulfill a request at least in part in collaboration, wherein communication between said services is based on support components, wherein each service is linked to one of said support components;
create a directed dependency graph of said plurality of services by tracing request flows between said plurality of services, thereby nodes of said directed dependency graph represent services and edges of said directed dependency graph represent used communication paths between selected ones of said services;
determine a dependent service for an incoming request to a selected one of said plurality of services based on said directed dependency graph; and
start an instance of said dependent service together with said selected one of said plurality of services.
