PatentRef

Data version 20261117.2, as of 2026-11-17. Free beta.

US 10564946

Dependency handling in an on-demand network code execution system

Granted 2020-02-18 · Filed 2017-12-13 · Application 15/841,143 · Utility · Kind B1

Assignee as printed
  • Amazon Technologies, Inc., Seattle, WA (US)
Inventors
Timothy Allen Wagner, Seattle, WA (US); Bryan Nicholas Moffatt, Seattle, WA (US); Marc John Brooker, Seattle, WA (US); Robison Rodrigues dos Santos, Seattle, WA (US); Niranjan Jayakar, Seattle, WA (US)
CPC, current
G06F8/433; G06F8/443; G06F9/45558; G06F2009/45562; G06F2009/45575

Abstract

Systems and methods are described for managing dependencies among code in an on-demand code execution system in a manner that enables efficient execution of the code. A user may generate a task on the system by submitting code, which may reference additional code on the system. The system can determine a dependency graph for the submitted code, and generate packages for the task based at least partly on the dependency graph. On receiving a request to execute the task, the system can provision an execution environment with the packages, and execute the code of the task. The packages may be selected based on analysis of the dependency graph, such that execution of the task on the on-demand code execution system is expected to satisfy a desired execution metric, which may include a maximum time to begin executing code of a task subsequent to receiving a request to execute the task.

Claims

17 claims · independent 1, 5 and 10

The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.

Claim 1

Independent claim.

1. A system comprising:

  1. Claim 1, element e1one or more non-transitory data stores configured to store code objects, individual code objects associated with an object identifier and including code executable on an on-demand code execution system; and 24–225
  2. Claim 1, element e2one or more processors in communication with the one or more non-transitory data stores and configured with computer-executable instructions to: 231–374
  3. Claim 1, element e3receive a request to generate a task on the on-demand code execution system, the request including a code object including task code executable to implement the task and an identifier of at least one additional code object required to execute the task code; 376–632
  4. Claim 1, element e4generate a dependency graph for the task, the dependency graph identifying the code object included within the request and the at least one additional code object corresponding to the identifier of the request; 634–843
  5. Claim 1, element e5group code objects identified in the dependency graph into one or more packages, individual packages of the one or more packages including at least one code object identified within the dependency graph, 845–1047
  6. Claim 1, element e6wherein the code objects are grouped into the one or more packages based at least partly on an expected time to provision an execution environment on the on-demand code execution system with the one or more packages, and wherein the expected time to provision the execution environment is based at least partly on an expected caching of individual packages within the one or more packages on the on-demand code execution system and an expected time to transfer uncached packages of the one or more packages between the one or more non-transitory data stores and the execution environment; 1049–1636
  7. Claim 1, element e7generate the one or more packages; 1638–1671
  8. Claim 1, element e8store the one or more package within the one or more non-transitory data stores; 1673–1752
  9. Claim 1, element e9receive a request to execute the task on the on-demand code execution system; and 1754–1830
  10. Claim 1, element e10execute the task on the on-demand code execution system at least partly by retrieving the one or more packages from the one or more non-transitory data stores and provisioning the execution environment of the on-demand code execution system with the one or more packages.1836–2106
3 dependent claims: 2 to 4 (2, 3, 4 on claim 1)

Claim 2

Depends on claim 1.

2. The system of claim 1 , wherein

  1. Claim 2, element e1the at least one additional code object corresponds to at least one of a code library, frameworks, software development kits (SDKs), drivers, or a runtime.35–189

Claim 3

Depends on claim 1.

3. The system of claim 1 , wherein

  1. Claim 3, element e1the identifier of at least one additional code object required to execute the task code corresponds to a uniform resource identifier (URI).35–173

Claim 4

Depends on claim 1.

4. The system of claim 1 , wherein

  1. Claim 4, element e1generating the dependency graph for the task comprises identifying, within the at least one additional code object corresponding to the identifier of the request, a reference to a third code object, and wherein the dependency graph identifies the third code object as a dependency of the at least one additional code object.35–358

Claim 5

Independent claim.

5. A computer-implemented method comprising:

  1. Claim 5, element e1receiving a request to generate a task on an on-demand code execution system, the request including a code object including task code executable to implement the task and an identifier of at least one additional code object required to execute the task code; 45–302
  2. Claim 5, element e2generating a dependency graph for the task, the dependency graph identifying the code object included within the request and the at least one additional code object corresponding to the identifier of the request; 304–515
  3. Claim 5, element e3grouping code objects identified in the dependency graph into one or more packages, individual packages of the one or more packages including at least one code object identified within the dependency graph, 517–722
  4. Claim 5, element e4wherein the code objects are grouped into the one or more packages based at least partly on an expected time to provision an execution environment on the on-demand code execution system with the one or more packages, and wherein the expected time to provision the execution environment is based at least partly on an expected caching of individual packages within the one or more packages on the on-demand code execution system and an expected time to transfer uncached packages of the one or more packages to the execution environment; 724–1259
  5. Claim 5, element e5generating the one or more packages; 1261–1296
  6. Claim 5, element e6receiving a request to execute the task on the on-demand code execution system; and 1298–1376
  7. Claim 5, element e7executing the task on the on-demand code execution system at least partly by provisioning the execution environment of the on-demand code execution system with the one or more packages.1382–1566
4 dependent claims: 6 to 9 (6, 7, 8, 9 on claim 5)

Claim 6

Depends on claim 5.

6. The computer-implemented method of claim 5 , wherein

  1. Claim 6, element e1the at least one additional code object corresponding to the identifier of the request is associated with a set of permission requirements for utilizing the at least one additional code object, 56–248
  2. Claim 6, element e2wherein the request is received from a user associated with a set of user permissions, and wherein the computer-implemented method further comprises verifying that the set of user permissions satisfies the a set of permission requirements.250–488

Claim 7

Depends on claim 5.

7. The computer-implemented method of claim 5 , wherein

  1. Claim 7, element e1individual packages of the one or more packages correspond to individual files, and wherein at least one of the individual packages corresponds to a compressed file system image file.56–238

Claim 8

Depends on claim 5.

8. The computer-implemented method of claim 5 , wherein

  1. Claim 8, element e1the expected caching of individual packages within the one or more packages on the on-demand code execution system is based on an expected frequency of use of the individual packages on the on-demand code execution system.56–277

Claim 9

Depends on claim 5.

9. The computer-implemented method of claim 5 further comprising

  1. Claim 9, element e1determining that the expected time to provision an execution environment on the on-demand code execution system with the one or more packages satisfies a threshold value.65–234

Claim 10

Independent claim.

10. Non-transitory computer readable media including

  1. Claim 10, element e1computer-executable instructions that, when executed by a processor of an on-demand code execution system, cause the processor to: 53–182
  2. Claim 10, element e2receive a request to generate a task on the on-demand code execution system, the request including a code object including task code executable to implement the task and an identifier of at least one additional code object required to execute the task code; 184–440
  3. Claim 10, element e3generate a dependency graph for the task, the dependency graph identifying the code object included within the request and the at least one additional code object corresponding to the identifier of the request; 442–651
  4. Claim 10, element e4group code objects identified in the dependency graph into one or more packages, individual packages of the one or more packages including at least one code object identified within the dependency graph, 653–855
  5. Claim 10, element e5wherein the code objects are grouped into the one or more packages based at least partly on an expected time to provision an execution environment on the on-demand code execution system with the one or more packages, and wherein the expected time to provision the execution environment is based at least partly on an expected caching of individual packages within the one or more packages on the on-demand code execution system and an expected time to transfer uncached packages of the one or more packages to the execution environment; 857–1392
  6. Claim 10, element e6generate the one or more packages; 1394–1427
  7. Claim 10, element e7receive a request to execute the task on the on-demand code execution system; and 1429–1505
  8. Claim 10, element e8execute the task on the on-demand code execution system at least partly by provisioning the execution environment of the on-demand code execution system with the one or more packages.1511–1693
7 dependent claims: 11 to 17 (11, 12, 13, 14, 15, 17 on claim 10; 16 on 15)

Claim 11

Depends on claim 10.

11. The non-transitory computer readable media of claim 10 , wherein

  1. Claim 11, element e1the dependency graph includes a plurality of nodes representing individual code objects, and wherein the dependency graph further includes edges between the plurality of nodes, the edges representing dependencies between the individual code objects.69–317

Claim 12

Depends on claim 10.

12. The non-transitory computer readable media of claim 10 , wherein

  1. Claim 12, element e1generating the one or more packages comprises combining the code object included within the request with all code objects identified within the dependency graph as a dependency of the code object included within the request.69–292

Claim 13

Depends on claim 10.

13. The non-transitory computer readable media of claim 10 , wherein

  1. Claim 13, element e1generating the one or more packages comprises combining the code object included within the request with only code objects identified within the dependency graph as a dependency of the code object included within the request and not a dependency of any other code object.69–339

Claim 14

Depends on claim 10.

14. The non-transitory computer readable media of claim 10 , wherein

  1. Claim 14, element e1generating the one or more packages comprises combining the code object included within the request with all non-runtime code objects identified within the dependency graph as a dependency of the code object included within the request.69–304

Claim 15

Depends on claim 10.

15. The non-transitory computer readable media of claim 10 , wherein

  1. Claim 15, element e1the one or more packages include plurality of packages, and wherein the computer-executable instructions further cause the processor to: 69–204
  2. Claim 15, element e2determine that an execution metric of the task does not satisfy a threshold value; and 206–287
  3. Claim 15, element e3determining a modification of the plurality of packages for the task expected to enable the execution metric to subsequently satisfy the threshold value; and 293–445
  4. Claim 15, element e4modify the plurality of packages according to the determined modification.451–524

Claim 16

Depends on claim 15.

16. The non-transitory computer readable media of claim 15 , wherein

  1. Claim 16, element e1the execution metric is based on historical executions of the task.69–135

Claim 17

Depends on claim 10.

17. The non-transitory computer readable media of claim 10 , wherein

  1. Claim 17, element e1the at least one additional code object corresponds to at least one of source code or machine code.69–167

Status

active

As of 2026-11-17, the USPTO record for US 10564946 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2037-12-26 (20 years from filing, plus 13 days of patent term adjustment), a date not yet passed (data version 20261117.2).

Basis
term_20y · pta_days:13 (20 years from filing, plus 13 days of patent term adjustment)
Term end
2037-12-26 Computed from the dates in the USPTO record
Fee lapse
none on record
Reinstatement
none on record; reinstatement_possible: false, not lapsed
As of
2026-11-17
Data version
20261117.2

A fact about the record with its basis and its as-of date, not legal advice.

Citations

References cited on the grant: 145 US patent documents · Cited by: 75 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/10564946/ (needs a free key, as the links under Get this as data)

Family outside the US

Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).

This patent's family on USPTO Global Dossier

Family data from Google Patents Public Datasets, used under CC BY 4.0.

Record JSON
{
 "patent_id": "10564946",
 "status": "active",
 "basis": [
  "term_20y",
  "pta_days:13"
 ],
 "reinstatement_possible": false,
 "reinstatement_basis": "not lapsed",
 "expiry_date_estimated": "2037-12-26",
 "lapse_date": null,
 "reinstated_date": null,
 "as_of": "2026-11-17",
 "data_version": "20261117.2",
 "catalog_data_version": "20261117.2",
 "permalink": "https://patentref.io/p/10564946?v=20261117.2",
 "next_steps": [
  {
   "kind": "record",
   "url": "https://patentref.io/p/10564946?v=20261117.2",
   "audience": "human"
  },
  {
   "kind": "patent",
   "url": "https://patentref.io/api/v1/patent/10564946/",
   "audience": "agent"
  },
  {
   "kind": "fee_events",
   "tool": "uspto_patent_center",
   "url": "https://patentcenter.uspto.gov/applications?patentNumber=10564946",
   "audience": "agent"
  }
 ]
}

Get this as data

These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.

Elsewhere

Cite this record

https://patentref.io/p/10564946?v=20261117.2

Data 20261117.2 · as of 2026-11-17