US 12,169,577 B2
Securely executing client code in a shared infrastructure
Prabhjot Singh, Union City, CA (US)
Assigned to Salesforce, Inc., San Francisco, CA (US)
Filed by Salesforce, Inc., San Francisco, CA (US)
Filed on Oct. 26, 2022, as Appl. No. 17/974,371.
Prior Publication US 2024/0143807 A1, May 2, 2024
Int. Cl. G06F 21/62 (2013.01)
CPC G06F 21/6218 (2013.01) 20 Claims
OG exemplary drawing
 
9. An apparatus comprising:
a processor;
a non-transitory machine-readable storage medium that provides instructions that, if executed by the processor, are configurable to cause the apparatus to perform operations comprising, instantiate a container manager configured to:
pre-initialize a plurality of containers;
register the plurality of containers in a container database and set a status of the plurality of containers as available;
delete any of the plurality of containers that are marked for deletion to prevent the containers marked for deletion from processing any subsequent calls;
instantiate one or more routers that are configured to:
receive over a network a call requesting execution of client code;
process the call by selecting one of the containers marked as available in the container database, and update the status of the selected container as in-use with timestamp to ensure that another one of the routers does not select any of the containers that are marked in-use;
responsive to the selected container processing the call and executing the client code, receiving a response from the selected container and returning the response to a caller; and
marking the selected container for deletion in the container database.