# US 2020/0401379 A1 · Automated microservice creation based on user interaction

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

- Number: US 2020/0401379 A1
- Document ID: US20200401379A1
- Status: Published application
- Kind: A1
- Application number: 16/447,295
- Filed: 2019-06-20
- Published: 2020-12-24
- Earliest claimed: 2019-06-20
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Ana Paula Appel; Renato Luiz De Freitas Cunha; Eduardo Rocha Rodrigues; Bruno Silva
- Web page: https://patentgrep.com/patent/US20200401379A1

## CPC

- G06F 8/33: Intelligent editors
- G06F 9/5072: {Grid computing}
- G06F 8/315: {Object-oriented languages}
- G06F 8/61: Installation
- G06F 8/73: Program documentation
- G06F 9/545: {where tasks reside in different layers, e.g. user- and kernel-space}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A microservice and the recipe for that microservice are automatically created by modifying a local environment in an integrated development environment executing on a computing system to construct a desired microservice, recording commands entered while modifying the local environment, computing a list of changes from the recorded commands that change the local environment and compiling the list of changes into a recipe comprising commands and dependencies sufficient to assemble an operating system and software files that are sufficient to instantiate the desired microservice.

## Claims

### Claim 1

A method for microservice creation, the method comprising:
modifying a local environment in an integrated development environment executing on a computing system to construct a desired microservice;
recording commands entered while modifying the local environment;
computing a list of changes from the recorded commands, the list of changes comprising commands that change the local environment; and
compiling the list of changes into a recipe comprising commands and dependencies sufficient to assemble an operating system and software files that are sufficient to instantiate the desired microservice.

### Claim 2 (depends on 1)

The method of claim 1, wherein modifying the local environment comprises modifying an existing local environment corresponding to an existing microservice, the desired microservice comprising a modification of the existing microservice.

### Claim 3 (depends on 1)

The method of claim 1, wherein modifying the local environment comprises creating a new local environment corresponding to a new microservice, the desired microservice comprising the new microservice.

### Claim 4 (depends on 1)

The method of claim 1, wherein the list of changes comprises only commands that change the local environment.

### Claim 5 (depends on 1)

The method of claim 1, wherein computing the list of changes comprises removing recorded commands that do not change the local environment.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
the recorded commands perform actions on files accessed within the integrated development environment; and
compiling the list of changes into the recipe comprises mapping recorded commands in the list of changes that access files within the integrated development environment to file paths in a target microservice provisioning environment that correspond to the files within the integrated development environment.

### Claim 7 (depends on 1)

The method of claim 1, wherein the method further comprises compressing the computed list of changes by identifying groups of common commands and expressing each group of common commands as a single command in the list of changes.

### Claim 8 (depends on 1)

The method of claim 1, wherein the method further comprises:
determining files, additional microservices and third-party software used during execution of the desired microservice; and
removing commands from the recipe associated with files, additional microservices and third-party software that are not used during execution of the desired microservice.

### Claim 9 (depends on 8)

The method of claim 8, wherein removing commands from the recipe further comprises removing commands only if a pre-determined percentage of lines of code used to execute the desired microservice are analyzed to determine the files, additional microservices and third-party software used during execution of the desired microservice.

### Claim 10

A computer-readable medium containing a computer-readable code that when read by a computer causes the computer to perform a method for microservice creation, the method comprising:
modifying a local environment in an integrated development environment executing on a computing system to construct a desired microservice;
recording commands entered while modifying the local environment;
computing a list of changes from the recorded commands, the list of changes comprising commands that change the local environment; and
compiling the list of changes into a recipe comprising commands and dependencies sufficient to assemble an operating system and software files that are sufficient to instantiate the desired microservice.

### Claim 11 (depends on 10)

The computer-readable medium of claim 10, wherein modifying the local environment comprises modifying an existing local environment corresponding to an existing microservice, the desired microservice comprising a modification of the existing microservice.

### Claim 12 (depends on 10)

The computer-readable medium of claim 10, wherein modifying the local environment comprises creating a new local environment corresponding to a new microservice, the desired microservice comprising the new microservice.

### Claim 13 (depends on 10)

The computer-readable medium of claim 10, wherein the list of changes comprises only commands that change the local environment.

### Claim 14 (depends on 10)

The computer-readable medium of claim 10, wherein computing the list of changes comprises removing recorded commands that do not change the local environment.

### Claim 15 (depends on 10)

The computer-readable medium of claim 10, wherein:
the recorded commands perform actions on files accessed within the integrated development environment; and
compiling the list of changes into a text document comprises mapping recorded commands in the list of changes that access files within the integrated development environment to file paths in a target microservice provisioning environment that correspond to the files within the integrated development environment.

### Claim 16 (depends on 10)

The computer-readable medium of claim 10, wherein the method further comprises compressing the computed list of changes by identifying groups of common commands and expressing each group of common commands as a single command in the list of changes.

### Claim 17 (depends on 10)

The computer-readable medium of claim 10, wherein the method further comprises:
determining files, additional microservices and third-party software used during execution of the desired microservice; and
removing commands from the recipe associated with files, additional microservices and third-party software that are not used during execution of the desired microservice.

### Claim 18 (depends on 17)

The computer-readable medium of claim 17, wherein removing commands from the recipe further comprises removing commands only if a pre-determined percentage of lines of code used to execute the desired microservice are analyzed to determine the files, additional microservices and third-party software used during execution of the desired microservice.

### Claim 19

A system for automated microservice creation, the system comprising:
an integrated development environment executing on a computing system, the integrated development environment comprising:
a local environment manager to manage local environments for development within the integrated development environment;
an integrated local environment shell in communication with the local environment manager and a development computer to facilitate modification of a given local environment to construct a desired microservice;
a change recorder in communication with the integrated local environment shell to record commands entered while modifying the given local environment and to compute a list of changes from the recorded commands, the list of changes comprising commands that change the given local environment; and
a recipe generator in communication with the change recorder to compile the list of changes into a recipe comprising commands and dependencies sufficient to assemble an operating system and software files that are sufficient to instantiate the desired microservice.

### Claim 20 (depends on 19)

The system of claim 19, wherein:
the system further comprises a command translation database in communication with the recipe generator, the command translation database comprising mappings between recorded commands in the list of changes that access files within the integrated development environment and file paths in a target microservice provisioning environment that correspond to the files within the integrated development environment; and
the integrated development environment further comprises:
a test suite in communication with the recipe generator to determine files, additional microservices and third-party software used during execution of the desired microservice and to determine a percentage of lines of code used to execute the desired microservice that are analyzed to determine the files, additional microservices and third-party software used during execution of the desired microservice; and
a change compressor to compress the computed list of changes by:
identifying groups common commands and expressing each group of common commands as a single command in the list of changes; and
removing commands from the recipe associated with files, additional microservices and third-party software that are not used during execution of the desired microservice when a pre-determined percentage of lines of code used to execute the desired microservice are analyzed to determine the files, additional microservices and third-party software used during execution of the desired microservice.
