# US 2019/0171433 A1 · Methods for enabling a computer to migrate microservices and to perform microservice templating

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

- Number: US 2019/0171433 A1
- Document ID: US20190171433A1
- Status: Published application
- Kind: A1
- Application number: 15/829,790
- Filed: 2017-12-01
- Published: 2019-06-06
- Earliest claimed: 2017-12-01
- Assignees: ADP, Inc.
- Applicants: Adp, LLC
- Inventors: Joe Groseclose; Lohit J. Sarma; Darshan Kapadia
- Web page: https://patentgrep.com/patent/US20190171433A1

## CPC

- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 8/76: Adapting program code to run in a different environment; Porting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Enabling migration of code in a service oriented architecture executed in a distributed computing environment. A migration definition for generating migrations is received, the migration definition exposing a tangible set of matchers and filters configured to locate code constructs and codebase settings of the code to be migrated. The code to be migrated is user defined. A deterministic script is scaffolded from the tangible set of matchers and filters to find instances of code to update or settings to update within the distributed environment. The instances of the code settings are updated, whereby the code in the service oriented architecture is migrated.

## Claims

### Claim 1

A computer implemented method of enabling migration of code in a service oriented architecture executed in a distributed computing environment, the computer-implemented method comprising:
receiving, using a processor, a migration definition for generating migrations, the migration definition exposing a tangible set of matchers and filters configured to locate code constructs and codebase settings of the code to be migrated, wherein the code to be migrated is user defined;
scaffolding, using the processor, a deterministic script from the tangible set of matchers and filters to find instances of code to update or settings to update within the distributed environment; and
updating, using the processor, the instances of the code or updating the settings, whereby the code in the service oriented architecture is migrated.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the migration definition exposes an application programming interface which the user can use to define migration of the code.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1 further comprising:
receiving input via the application programming interface, the input commanding the processor to revert the code to a previous state.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1 further comprising:
receiving input via the application programming interface, the input commanding the processor to advance the code to a new state.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein updating is performed by using a parsed or tokenized code tree traversal to traverse code to be migrated.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the deterministic script is scaffolded based on a user's consumption and definition of the matchers and filters.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1 further comprising:
maintaining a state of to where a consuming code base has migrated at each point in time.

### Claim 8

A non-transitory computer-recordable storage medium storing program code which, when executed by a processor, performs computer implemented method of enabling migration of code in a service oriented architecture executed in a distributed computing environment, the program code comprising:
program code for receiving, using a processor, a migration definition for generating migrations, the migration definition exposing a tangible set of matchers and filters configured to locate code constructs and codebase settings of the code to be migrated, wherein the code to be migrated is user defined;
program code for scaffolding, using the processor, a deterministic script from the tangible set of matchers and filters to find instances of code to update or settings to update within the distributed environment; and
program code for updating, using the processor, the instances of the code or updating the settings, whereby the code in the service oriented architecture is migrated.

### Claim 9 (depends on 8)

The non-transitory computer-recordable storage medium of claim 8 wherein the migration definition is configured to expose an application programming interface which the user can use to define migration of the code.

### Claim 10 (depends on 8)

The non-transitory computer-recordable storage medium of claim 8, wherein the program code further comprises:
program code for receiving input via the application programming interface, the input configured to command the processor to revert the code to a previous state.

### Claim 11 (depends on 8)

The non-transitory computer-recordable storage medium of claim 8, wherein the program code further comprises:
program code for receiving input via the application programming interface, the input configured to command the processor to advance the code to a new state.

### Claim 12 (depends on 8)

The non-transitory computer-recordable storage medium of claim 8, wherein the program code for updating is configured to performed by program code configured to use a parsed or tokenized code tree traversal to traverse code to be migrated.

### Claim 13 (depends on 8)

The non-transitory computer-recordable storage medium of claim 8, wherein the deterministic script is scaffolded based on a user's consumption and definition of the matchers and filters.

### Claim 14 (depends on 8)

The non-transitory computer-recordable storage medium of claim 8, wherein the program code further comprises:
program code for maintaining a state of to where a consuming code base has migrated at each point in time.

### Claim 15

A computer comprising:
a processor; and
a non-transitory computer-recordable storage medium storing program code which, when executed by the processor, performs computer implemented method of enabling migration of code in a service oriented architecture executed in a distributed computing environment, the program code comprising:
program code for receiving, using a processor, a migration definition for generating migrations, the migration definition exposing a tangible set of matchers and filters configured to locate code constructs and codebase settings of the code to be migrated, wherein the code to be migrated is user defined;
program code for scaffolding, using the processor, a deterministic script from the tangible set of matchers and filters to find instances of code to update or settings to update within the distributed environment; and
program code for updating, using the processor, the instances of the code or updating the settings, whereby the code in the service oriented architecture is migrated.

### Claim 16 (depends on 15)

The computer of claim 15, wherein the program code further comprises:
program code for receiving input via the application programming interface, the input commanding the processor to revert the code to a previous state.

### Claim 17 (depends on 15)

The computer of claim 15, wherein the program code further comprises:
program code for receiving input via the application programming interface, the input commanding the processor to advance the code to a new state.

### Claim 18 (depends on 15)

The computer of claim 15, wherein the program code for updating is performed by program code configured to use a parsed or tokenized code tree traversal to traverse code to be migrated.

### Claim 19 (depends on 15)

The computer of claim 15, wherein the deterministic script is scaffolded based on a user's consumption and definition of the matchers and filters.

### Claim 20 (depends on 15)

The computer of claim 15, wherein the program code further comprises:
program code for maintaining a state of to where a consuming code base has migrated at each point in time.
