# US 2022/0035732 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 2022/0035732 A1
- Document ID: US20220035732A1
- Status: Published application
- Kind: A1
- Application number: 17/500,299
- Filed: 2021-10-13
- Published: 2022-02-03
- Earliest claimed: 2020-04-22
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jin Xiao; Anup Kalia; Chen Lin; Raghav Batta; Saurabh Sinha; John Rofrano; Maja Vukovic
- Web page: https://patentgrep.com/patent/US20220035732A1

## 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 collection component that labels runtime traces of business function test cases executed on a monolithic application with respective business contexts resulting in business context labeled runtime traces; and
a refinement component that generates a group of microservices from the monolithic application based on the business context labeled runtime traces.

### Claim 2 (depends on 1)

The system of claim 1, wherein the refinement component refines one or more microservices of the group of microservices based on data dependency of the monolithic application.

### Claim 3 (depends on 1)

The system of claim 1, wherein the refinement component refines one or more microservices of the group of microservices based on a static call graph of the monolithic application.

### Claim 4 (depends on 1)

The system of claim 1, wherein the computer executable components further comprise:
a model component that generates a causal graph based on the business context labeled runtime traces that captures temporal dependencies in the business context labeled runtime traces.

### Claim 5 (depends on 4)

The system of claim 4, wherein the refinement component refines one or more microservices of the group of microservices based on the causal graph.

### Claim 6 (depends on 4)

The system of claim 4, wherein the temporal dependencies comprise at least one of first order temporal dependencies or high order temporal dependencies.

### Claim 7 (depends on 1)

The system of claim 1, wherein the computer executable components further comprise:
a cluster component that cluster classes in the monolithic application based on the business context labeled runtime traces.

### Claim 8

A computer-implemented method, comprising:
labeling, by a system operatively coupled to a processor, runtime traces of business function test cases executed on a monolithic application with respective business contexts resulting in business context labeled runtime traces; and
generating, by the system, a group of microservices from the monolithic application based on the business context labeled runtime traces.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, further comprising:
refining, by the system, one or more microservices of the group of microservices based on data dependency of the monolithic application.

### Claim 10 (depends on 8)

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

### Claim 11 (depends on 8)

The computer-implemented method of claim 8, further comprising:
generating, by the system, a causal graph based on the business context labeled runtime traces that captures temporal dependencies in the business context labeled runtime traces.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, further comprising:
refining, by the system, one or more microservices of the group of microservices based on based on the causal graph.

### Claim 13 (depends on 11)

The computer-implemented method of claim 11, wherein the temporal dependencies comprise at least one of first order temporal dependencies or high order temporal dependencies.

### Claim 14 (depends on 8)

The computer-implemented method of claim 8, further comprising:
clustering, by the system, classes in the monolithic application based on the business context labeled runtime traces.

### Claim 15

A computer program product facilitating a process to generate microservices, 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:
label, by the processor, runtime traces of business function test cases executed on a monolithic application with respective business contexts resulting in business context labeled runtime traces; and
generate, by the processor, a group of microservices from the monolithic application based on the business context labeled runtime traces.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the program instructions are further executable by the processor to cause the processor to:
refine, by the processor, one or more microservices of the group of microservices based on data dependency of the monolithic application.

### Claim 17 (depends on 15)

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

### Claim 18 (depends on 15)

The computer program product of claim 15, 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 business context labeled runtime traces that captures temporal dependencies in the business context labeled runtime traces.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the program instructions are further executable by the processor to cause the processor to:
refine, by the processor, one or more microservices of the group of microservices based on the causal graph.

### Claim 20 (depends on 18)

The computer program product of claim 18, wherein the temporal dependencies comprise at least one of first order temporal dependencies or high order temporal dependencies.
