# US 2021/0334194 A1 · Generation of microservices from a monolithic application based on runtime traces

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

- Number: US 2021/0334194 A1
- Document ID: US20210334194A1
- Status: Published application
- Kind: A1
- Application number: 16/855,565
- Filed: 2020-04-22
- Published: 2021-10-28
- Earliest claimed: 2020-04-22
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jin Xiao; Anup Kalia; Chin Lin; Raghav Batta; Saurabh Sinha; John Rofrano; Maja Vukovic
- Web page: https://patentgrep.com/patent/US20210334194A1

## CPC

- G06F 11/3051: {Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs (verification or detection of system hardware configuration G06F11/2247)}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/323: {Visualisation of programs or trace data}
- G06F 11/34: Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation {; Recording or statistical evaluation of user activity, e.g. usability assessment}
- G06F 11/3409: {for performance assessment}
- G06F 11/3447: {Performance evaluation by modeling}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 11/3636: {by tracing the execution of the program}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3692: {for test results analysis}
- G06N 20/00: Machine learning
- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06F 2201/865: Monitoring of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems, computer-implemented methods, and computer program products to facilitate generation of microservices from a monolithic application based on runtime traces are provided. According to an embodiment, a system can comprise a memory that stores computer executable components and a processor that executes the computer executable components stored in the memory. The computer executable components can comprise a model component that learns cluster assignments of classes in a monolithic application based on runtime traces of executed test cases. The computer executable components can further comprise a cluster component that employs the model component to generate clusters of the classes based on the cluster assignments to identify one or more microservices of the monolithic application.

## Claims

### Claim 1

A system, comprising:
a memory that stores computer executable components; and
a processor that executes the computer executable components stored in the memory, wherein the computer executable components comprise:
a model component that learns cluster assignments of classes in a monolithic application based on runtime traces of executed test cases, wherein the runtime traces are appended with labels comprising respective business contexts associated with the runtime traces; and
a cluster component that employs the model component to generate clusters of the classes based on the cluster assignments to identify one or more microservices of the monolithic application.

### Claim 2 (depends on 1)

The system of claim 1, wherein the computer executable components comprise:
a refinement component that refines the one or more microservices based on at least one of data dependency of the monolithic application or a static call graph of the monolithic application.

### Claim 3 (depends on 1)

The system of claim 1, wherein the computer executable components comprise:
a second model component that generates one or more causal graphs based on the runtime traces of the executed test cases to capture at least one of first order temporal dependencies or high order temporal dependencies of at least one of the monolithic application or the cluster assignments of the classes in the monolithic application.

### Claim 4 (depends on 1)

The system of claim 1, wherein the model component learns at least one of the cluster assignments or graph embeddings of the classes in the monolithic application using causal sequences of one or more causal graphs generated based on the runtime traces of the executed test cases.

### Claim 5 (depends on 1)

The system of claim 1, wherein the executed test cases comprise business function test cases that provide business functionalities of the monolithic application in the runtime traces, thereby facilitating at least one of improved performance, improved efficiency, or reduced computational costs of at least one of the processor or the system in executing application modernization of the monolithic application.

### Claim 6

A computer-implemented method, comprising:
training, by a system operatively coupled to a processor, a model to learn cluster assignments of classes in a monolithic application based on runtime traces of executed test cases wherein the runtime traces are appended with labels comprising respective business contexts associated with the runtime traces; and
employing, by the system, the model to generate clusters of the classes based on the cluster assignments to identify one or more micro services of the monolithic application.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising:
refining, by the system, the one or more microservices based on at least one of data dependency of the monolithic application or a static call graph of the monolithic application.

### Claim 8 (depends on 6)

The computer-implemented method of claim 6, further comprising:
generating, by the system, one or more causal graphs based on the runtime traces of the executed test cases to capture at least one of first order temporal dependencies or high order temporal dependencies of at least one of the monolithic application or the cluster assignments of the classes in the monolithic application.

### Claim 9 (depends on 6)

The computer-implemented method of claim 6, wherein the training comprises:
training, by the system, the model to learn at least one of the cluster assignments or graph embeddings of the classes in the monolithic application using causal sequences of one or more causal graphs generated based on the runtime traces of the executed test cases.

### Claim 10 (depends on 6)

The computer-implemented method of claim 6, wherein the executed test cases comprise business function test cases that provide business functionalities of the monolithic application in the runtime traces, thereby facilitating at least one of improved performance, improved efficiency, or reduced computational costs of at least one of the processor or the system in executing application modernization of the monolithic application.

### Claim 11

A computer program product facilitating a process to generate microservices from a monolithic application based on runtime traces, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
train, by the processor, a model to learn cluster assignments of classes in the monolithic application based on runtime traces of executed test cases, wherein the runtime traces are appended with labels comprising respective business contexts associated with the runtime traces; and
employ, by the processor, the model to generate clusters of the classes based on the cluster assignments to identify one or more micro services of the monolithic application.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the program instructions are further executable by the processor to cause the processor to:
refine, by the processor, the one or more microservices based on at least one of data dependency of the monolithic application or a static call graph of the monolithic application.

### Claim 13 (depends on 11)

The computer program product of claim 11, wherein the program instructions are further executable by the processor to cause the processor to:
generate, by the processor, a causal graph based on the runtime traces of the executed test cases to capture at least one of first order temporal dependencies or high order temporal dependencies of at least one of the monolithic application or the cluster assignments of the classes in the monolithic application.

### Claim 14 (depends on 11)

The computer program product of claim 11, wherein the program instructions are further executable by the processor to cause the processor to:
train, by the processor, the model to learn at least one of the cluster assignments or graph embeddings of the classes in the monolithic application using causal sequences of one or more causal graphs generated based on the runtime traces of the executed test cases.

### Claim 15 (depends on 11)

The computer program product of claim 11, wherein the executed test cases comprise business function test cases that provide business functionalities of the monolithic application in the runtime traces.

### Claim 16

A system, comprising:
a memory that stores computer executable components; and
a processor that executes the computer executable components stored in the memory, wherein the computer executable components comprise:
a collection component that:
collects runtime traces of test cases executed on a monolithic application, and
appends labels to the runtime traces comprising respective business contexts associated with the runtime traces;
a model component that learns cluster assignments of classes in the monolithic application based on the runtime traces and the respective business contexts; and
a cluster component that employs the model component to generate clusters of the classes based on the cluster assignments to identify one or more microservices of the monolithic application.

### Claim 17 (depends on 16)

The system of claim 16, wherein the computer executable components comprise:
a refinement component that refines the one or more microservices based on at least one of data dependency of the monolithic application or a static call graph of the monolithic application.

### Claim 18 (depends on 16)

The system of claim 16, wherein the computer executable components comprise:
a second model component that generates one or more causal graphs based on the runtime traces to capture at least one of first order temporal dependencies or high order temporal dependencies of at least one of the monolithic application or the cluster assignments of the classes in the monolithic application.

### Claim 19 (depends on 16)

The system of claim 16, wherein the model component learns at least one of the cluster assignments or graph embeddings of the classes in the monolithic application using causal sequences of one or more causal graphs generated based on the runtime traces.

### Claim 20 (depends on 16)

The system of claim 16, wherein the test cases comprise business function test cases that provide business functionalities of the monolithic application in the runtime traces, thereby facilitating at least one of improved performance, improved efficiency, or reduced computational costs of at least one of the processor or the system in executing application modernization of the monolithic application.

### Claim 21

A computer-implemented method, comprising:
collecting, by a system operatively coupled to a processor, runtime traces of test cases executed on a monolithic application;
appending, by the system, labels to the runtime traces comprising respective business contexts associated with the runtime traces;
training, by the system, a model to learn cluster assignments of classes in the monolithic application based on the runtime traces and the respective business contexts; and
employing, by the system, the model to generate clusters of the classes based on the cluster assignments to identify one or more micro services of the monolithic application.

### Claim 22 (depends on 21)

The computer-implemented method of claim 21, further comprising:
refining, by the system, the one or more microservices based on at least one of data dependency of the monolithic application or a static call graph of the monolithic application.

### Claim 23 (depends on 21)

The computer-implemented method of claim 21, further comprising:
generating, by the system, one or more causal graphs based on the runtime traces to capture at least one of first order temporal dependencies or high order temporal dependencies of at least one of the monolithic application or the cluster assignments of the classes in the monolithic application.

### Claim 24 (depends on 21)

The computer-implemented method of claim 21, wherein the training comprises:
training, by the system, the model to learn at least one of the cluster assignments or graph embeddings of the classes in the monolithic application using causal sequences of one or more causal graphs generated based on the runtime traces.

### Claim 25 (depends on 21)

The computer-implemented method of claim 21, wherein the test cases comprise business function test cases that provide business functionalities of the monolithic application in the runtime traces.
