US 11,755,381 B1
Dynamic selection of where to execute application code in a distributed cloud computing network
Michael Hart, New York, NY (US); Alyson Cabral, Austin, TX (US); and Kenton Taylor Varda, Austin, TX (US)
Assigned to CLOUDFLARE, INC., San Francisco, CA (US)
Filed by CLOUDFLARE, INC., San Francisco, CA (US)
Filed on Feb. 8, 2023, as Appl. No. 18/166,400.
Int. Cl. G06F 9/50 (2006.01)
CPC G06F 9/5072 (2013.01) [G06F 9/505 (2013.01)] 27 Claims
OG exemplary drawing
 
1. A method, comprising:
receiving a first request from a client device at a first datacenter of a plurality of datacenters of a distributed cloud computing network;
determining that the received first request triggers execution of first code at the distributed cloud computing network;
determining that execution of the first code includes transmitting a plurality of second requests to a set of one or more first destinations external to the distributed cloud computing network;
selecting a second datacenter out of the plurality of datacenters to execute the first code, wherein selecting the second datacenter is based on an optimization goal;
causing the first code to be executed at the second datacenter;
receiving, at the first datacenter, a first result from the first code being executed at the second datacenter; and
transmitting a first response to the client device that is based at least in part on the received first result.