×

Dependency handling in an on-demand network code execution system

  • US 10,564,946 B1
  • Filed: 12/13/2017
  • Issued: 02/18/2020
  • Est. Priority Date: 12/13/2017
  • Status: Active Grant
First Claim
Patent Images

1. A system comprising:

  • one 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

    one or more processors in communication with the one or more non-transitory data stores and configured with computer-executable instructions to;

    receive 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;

    generate 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;

    group 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, wherein 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;

    generate the one or more packages;

    store the one or more package within the one or more non-transitory data stores;

    receive a request to execute the task on the on-demand code execution system; and

    execute 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.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×