US 11,658,939 B2
Mechanism to reduce serverless function startup latency
Ying Xiong, Bothell, WA (US); Farhad P. Sunavala, San Ramon, CA (US); and Hong Zhang, Palo Alto, CA (US)
Assigned to Huawei Cloud Computing Technologies Co., Ltd., Gui'an New District (CN)
Filed by Huawei Cloud Computing Technologies Co., Ltd., Gui'an New District (CN)
Filed on Mar. 11, 2020, as Appl. No. 16/815,226.
Application 16/815,226 is a continuation of application No. PCT/CN2019/083334, filed on Apr. 19, 2019.
Claims priority of provisional application 62/784,134, filed on Dec. 21, 2018.
Prior Publication US 2020/0213279 A1, Jul. 2, 2020
Int. Cl. H04L 29/06 (2006.01); H04L 29/12 (2006.01); H04L 12/741 (2013.01); H04L 12/713 (2013.01); H04L 29/08 (2006.01); H04L 12/46 (2006.01); G06F 15/16 (2006.01); G06F 9/455 (2018.01); H04L 9/32 (2006.01); G06F 9/54 (2006.01); H04L 9/40 (2022.01); H04L 45/00 (2022.01); H04L 45/586 (2022.01); H04L 67/10 (2022.01); H04L 61/2517 (2022.01); H04L 101/622 (2022.01)
CPC H04L 63/0272 (2013.01) [G06F 9/45558 (2013.01); H04L 12/4641 (2013.01); H04L 45/54 (2013.01); H04L 45/586 (2013.01); H04L 61/2517 (2013.01); H04L 67/10 (2013.01); G06F 2009/45562 (2013.01); G06F 2009/45575 (2013.01); G06F 2009/45595 (2013.01); H04L 2101/622 (2022.05)] 44 Claims
OG exemplary drawing
 
21. A device comprising:
a memory that stores instructions; and
one or more processors in communication with the memory, wherein the one or more processors execute the instructions to:
receive first configuration information configured by a user;
configure a first serverless function of the user based on the first configuration information, wherein the first configuration information is used to determine a user VPC for the first serverless function to access, a function code of the first serverless function, and a first trigger event to be used in connection with the first serverless function, wherein the first trigger event is used to trigger the first serverless function;
instantiate a first computing resource, wherein the first computing resource is used to host the first serverless function, the function code of the first serverless function is mounted within the first computing resource, and the function code of the first serverless function is executed by the first computing resource in response to detecting the first trigger event for triggering the first serverless function;
instantiate a proxy gateway, wherein the proxy gateway comprises a first network interface connected to the first computing resource and a second network interface connected to the user VPC; and
during execution of the function code in the first computing resource, route network packets from the first computing resource addressed to the user VPC associated with the first serverless function to the first network interface of the proxy gateway, wherein the network packets from the first computing resource addressed to the user VPC associated with the first serverless function are received at the first network interface, and the network packets from the first computing resource addressed to the user VPC associated with the first serverless function are forwarded by the second network interface of the proxy gateway to the user VPC.