# US 2021/0334126 A1 · On-demand code execution with limited memory footprint

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

- Number: US 2021/0334126 A1
- Document ID: US20210334126A1
- Status: Published application
- Kind: A1
- Application number: 17/140,978
- Filed: 2021-01-04
- Published: 2021-10-28
- Earliest claimed: 2018-04-03
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Arunachalam Sundararam; Erik Jacob Sipsma
- Web page: https://patentgrep.com/patent/US20210334126A1

## CPC

- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/44505: {Configuring for program initiating, e.g. using registry, configuration files}
- G06F 9/5072: {Grid computing}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods are described for management of a coordinated environment for execution of on-demand code with reduced memory footprint provided. A coordinator receives individual on-demand code execution requests or tasks from coordinated devices. The coordinate can process the on-demand code execution requests to associate at least a subset of the on-demand code execution with one or more groups sharing executable code. The coordinated device can implement the execution of the individual tasks without requiring a separate loading and execution of the on-demand executable code. Accordingly, the coordinated device may be implemented on computing devices having more limited computing resources by reducing the memory footprint required to execute the on-demand task.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving, by a coordinator device, a request from a first coordinated device of a plurality of coordinated devices to execute a first task, the first task corresponding to code that is executable on demand in a serverless computing environment;
obtaining information regarding available computing resources for a plurality of serverless computing environments, wherein the plurality of serverless computing environments includes a local serverless computing environment associated with the coordinator device and a remote serverless computing environment associated with a service provider;
identifying, based at least in part on the information regarding available computing resources, a serverless computing environment having an amount of available computing resources needed to execute the first task;
causing the identified serverless computing environment to execute the first task;
obtaining, from the identified serverless computing environment, a processing result corresponding to execution of the first task; and
transmitting the processing result to the coordinated device.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein identifying the serverless computing environment comprises determining that the local serverless computing environment does not have the amount of available computing resources needed to execute the first task.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the plurality of computing environments further includes a serverless computing environment associated with a second coordinated device of the plurality of coordinated devices.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein causing the identified serverless computing environment to execute the first task comprises transmitting at least a portion of the request to the second coordinated device.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein identifying the serverless computing environment is further based at least in part on a prioritization of the first task.

### Claim 6

A coordinator device comprising:
a data store configured to store computer-executable instructions; and
a processor in communication with the data store, wherein the computer-executable instructions, when executed by the processor, configure the coordinator device to perform operations including:
receiving a request from a coordinated device to execute a first task, the first task corresponding to code that is executable on demand in a serverless computing environment;
identifying, based at least in part on information regarding available computing resources for a plurality of serverless computing environments, a serverless computing environment with an amount of available computing resources needed to execute the first task;
obtaining, from the identified serverless computing environment, a processing result corresponding to execution of the first task; and
transmitting the processing result to the coordinated device.

### Claim 7 (depends on 6)

The coordinator device of claim 6, wherein the coordinator device provides at least one of the plurality of serverless computing environments.

### Claim 8 (depends on 6)

The coordinator device of claim 6, wherein the identified serverless computing environment is a remote serverless computing environment.

### Claim 9 (depends on 6)

The coordinator device of claim 6, wherein identifying the serverless computing environment is further based at least in part on a performance metric associated with executing the first task.

### Claim 10 (depends on 6)

The coordinator device of claim 6, wherein identifying the serverless computing environment is further based at least in part on a work item queue for a serverless computing environment associated with the coordinator device.

### Claim 11 (depends on 6)

The coordinator device of claim 6, wherein the coordinated device is a first coordinated device of a plurality of coordinated devices.

### Claim 12 (depends on 11)

The coordinator device of claim 11, wherein the identified serverless computing environment is provided by one of the plurality of coordinated devices.

### Claim 13 (depends on 11)

The coordinator device of claim 11, wherein the data store is configured to store further computer-executable instructions that, when executed by the processor, configure the coordinator device to perform further operations including:
receiving a request from a second coordinated device to execute the first task;
obtaining, from the identified serverless computing environment, a second processing result corresponding to a second execution of the first task; and
transmitting the second processing result to the second coordinated device.

### Claim 14 (depends on 13)

The coordinator device of claim 13, wherein obtaining the second processing result includes causing the identified serverless computing environment to be reset between executions of the first task.

### Claim 15 (depends on 6)

The coordinator device of claim 6, wherein the identified serverless computing environment is pre-generated for the first task.

### Claim 16

A computer-implemented method comprising:
obtaining, by a coordinator device, a request from a coordinated device to execute a first task, the first task corresponding to code that is executable on demand in a serverless computing environment;
obtaining, by the coordinator device, a processing result from a first serverless computing environment of a plurality of serverless computing environments, the processing result corresponding to execution of the first task, wherein the first serverless computing environment is identified based at least in part on information regarding available computing resources for the plurality of serverless computing environments; and
transmitting, by the coordinator device, the processing result to the coordinated device.

### Claim 17 (depends on 15)

The computer-implemented method of claim 15 further comprising identifying, by the coordinator device, the first serverless computing environment.

### Claim 18 (depends on 15)

The computer-implemented method of claim 15, wherein the first serverless computing environment is identified further based at least in part on a priority of the first task relative to other tasks in a work item queue.

### Claim 19 (depends on 15)

The computer-implemented method of claim 15 further comprising scheduling, by the coordinator device, execution of the first task based at least in part on a scheduling algorithm.

### Claim 20 (depends on 19)

The computer-implemented method of claim 19, wherein the scheduling algorithm comprises one or more of first-in first-out scheduling, earliest deadline scheduling, shortest remaining time scheduling, fixed priority pre-emptive scheduling, or round-robin scheduling.
