×

Dependency handling in an on-demand network code execution system

  • US 10,725,752 B1
  • Filed: 02/13/2018
  • Issued: 07/28/2020
  • Est. Priority Date: 02/13/2018
  • Status: Active Grant
First Claim
Patent Images

1. A system comprising:

  • a physical data store storing;

    a first package representing as a single file a set of code objects depended on by at least first user-submitted code executable on an on-demand code execution system; and

    a collection of packages representing the set of code objects as multiple files;

    a computing device configured with executable instructions to;

    receive a request for the set of code objects depended on by at least first user-submitted code executable;

    make a selection between returning information identifying the first package or information identifying the collection of packages in response to the request, wherein making the selection comprises;

    determining, for the collection of packages, a threshold use rate for incurring additional time required to transfer the set of code objects as the collection of packages to a computing device within the on-demand code execution system relative to time required to transfer the set of code objects as the first package to the computing device, wherein the threshold use rate is determined based at least partly on a number of files within the collection of packages;

    obtaining an expected future use rate on the on-demand code execution system for the collection of packages, wherein the expected future use rate indicates at least one expected future use of a file, within the multiple files, by an execution of second user-submitted executable code on the on-demand code execution system, the second user-submitted code being distinct from the first user-submitted code;

    determining whether the expected future use rate for the collection of packages at least meets the threshold use rate for incurring the additional time required to transfer the collection of packages to the computing device, wherein if the expected future use rate at least meets the threshold, the computing device is configured to return information identifying the collection of packages in response to the request, and wherein if the expected future use rate does not meet the threshold, the computing device is configured to return information identifying the first packages in response to the request; and

    in response to determining that the expected future use rate for the collection of packages at least meets the threshold use rate, selecting to return the information identifying the collection of packages in response to the request; and

    return, as a response to the request, the information identifying the collection of packages, wherein the response to the request causes the computing device within the on-demand code execution system to retrieve individual files within the collection of packages for use during execution of the first user-submitted executable code.

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