×

Code execution request routing

  • US 9,910,713 B2
  • Filed: 12/21/2015
  • Issued: 03/06/2018
  • Est. Priority Date: 12/21/2015
  • Status: Active Grant
First Claim
Patent Images

1. A system for providing low-latency computational capacity, the system comprising:

  • an external database service configured to store a plurality of key-value pairs;

    a virtual compute system comprising one or more hardware computing devices executing specific computer-executable instructions, the virtual compute system in communication with the external database service and configured to at least;

    maintain a plurality of virtual machine instances on one or more physical computing devices, wherein the plurality of virtual machine instances comprises;

    a warming pool comprising virtual machine instances having one or more software components loaded thereon and waiting to be assigned to a user; and

    an active pool comprising virtual machine instances currently assigned to one or more users;

    process a first request to execute a first program code associated with a first user on the virtual compute system, the first request including an identity of the first user, and one or more first execution parameters to be used for executing the first program code;

    execute the first program code in a first container created on a first virtual machine instance in the active pool using the one or more first execution parameters, the execution of the program code causing one or more key-value pairs of the plurality of key-value pairs to be retrieved from the external database service and stored locally within the first container;

    process a second request to execute the first program code on the virtual compute system, the second request including the identity of the first user, one or more second execution parameters to be used for executing the first program code, and a user indication that the second request is to be handled using the first container previously used for handling the first request; and

    based on the user indication that the second request is to be handled using the first container, execute the first program code in the first container using the one or more second execution parameters, the execution of the first program code accessing the one or more key-value pairs locally stored within the first container such that a latency associated with the execution of the first program code based on the one or more second execution parameters is reduced.

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