# US 2024/0121300 A1 · Reuse of execution environments while guaranteeing isolation in serverless computing

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

- Number: US 2024/0121300 A1
- Document ID: US20240121300A1
- Status: Published application
- Kind: A1
- Application number: 18/529,802
- Filed: 2023-12-05
- Published: 2024-04-11
- Earliest claimed: 2020-07-21
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Dominik Rene Tornow; Urmil Vijay Dave; Kyle Andrew Donald Mestery; Ian Wells
- Web page: https://patentgrep.com/patent/US20240121300A1

## CPC

- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- G05B 2219/23428: Select program from look up tables as function of detector states, pointer, index to program
- G05B 2219/34299: Memory with I-O and pointer, external I-O with map, edit map, pointer to adapt I-O
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

Systems, methods, and computer-readable media are provided for reusing execution environments and code of serverless functions while ensuring isolation in serverless computing environments. In some examples, a method can include, in response to a first request to run a serverless function, executing, at an execution environment on a network, computer-readable code configured to perform the serverless function; after the computer-readable code has executed, modifying a pointer to an area of memory used to store a first state of the serverless function to reference a different area of memory; in response to a second request to run the serverless function, reusing, at the execution environment, the computer-readable code to perform the serverless function; and based on the pointer referencing the different area of memory, using the different area of memory to store a second state of the serverless function.

## Claims

### Claim 1

A method comprising:
receiving, by a serverless computing environment, a request to execute a serverless function;
in an execution environment with code loaded for executing the serverless function, swapping a memory location from a previous memory location to store a state of the serverless function; and
providing a response to the request.

### Claim 2 (depends on 1)

The method of claim 1, wherein the swapping provides isolation when reusing the code to run the serverless function.

### Claim 3 (depends on 1)

The method of claim 1, wherein the swapped memory location is a different memory location used for the state of the serverless function when the serverless function was previously executed for a different request.

### Claim 4 (depends on 1)

The method of claim 1, wherein the response to the request includes output generated from execution of the serverless function.

### Claim 5 (depends on 1)

The method of claim 1, wherein the memory location is an unused memory location.

### Claim 6 (depends on 1)

The method of claim 1, wherein the swapping of the memory location includes changing a pointer reference.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
determining whether the code for executing the serverless function is loaded in the execution environment; and
in response to the code for executing the serverless function not being loaded in the execution environment, instantiating the execution environment with the code.

### Claim 8

A system comprising:
one or more processors; and
at least one computer-readable storage medium having stored thereon instructions which, when executed by the one or more processors, cause the one or more processors to:
receive a request to execute a serverless function;
in an execution environment with code loaded for executing the serverless function, swap a memory location from a previous memory location to store a state of the serverless function; and
provide a response to the request.

### Claim 9 (depends on 8)

The system of claim 8, wherein the swapping provides isolation when reusing the code to run the serverless function.

### Claim 10 (depends on 8)

The system of claim 8, wherein the swapped memory location is a different memory location used for the state of the serverless function when the serverless function was previously executed for a different request.

### Claim 11 (depends on 8)

The system of claim 8, wherein the response to the request includes output generated from execution of the serverless function.

### Claim 12 (depends on 8)

The system of claim 8, wherein the memory location is an unused memory location.

### Claim 13 (depends on 8)

The system of claim 8, wherein the swapping of the memory location includes changing a pointer reference.

### Claim 14 (depends on 8)

The system of claim 8, comprising further instructions, which when executed by the one or more processors, cause the one or more processors to:
determine whether the code for executing the serverless function is loaded in the execution environment; and
in response to the code for executing the serverless function not being loaded in the execution environment, instantiate the execution environment with the code.

### Claim 15

A non-transitory computer-readable storage medium having stored thereon instructions which, when executed by one or more processors, cause the one or more processors to:
receive a request to execute a serverless function;
in an execution environment with code loaded for executing the serverless function, swapping a memory location from a previous memory location to store a state of the serverless function; and
provide a response to the request.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the swapping provides isolation when reusing the code to run the serverless function.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the swapped memory location is a different memory location used for the state of the serverless function when the serverless function was previously executed for a different request.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the response to the request includes output generated from execution of the serverless function.

### Claim 19 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the memory location is an unused memory location.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the swapping of the memory location includes changing a pointer reference.
