Patent ID: 11895212
Assignee: AMAZON TECHNOLOGIES, INC.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 11:
12. One or more non-transitory computer-readable storage media storing program instructions that when executed on or across one or more processors cause the one or more processors to perform:
receiving, at individual ones of a plurality of edge servers of a content delivery network for providing content:
a respective one of a plurality of read-only data stores specified by a particular customer of the content delivery network;
a plurality of different functions specified by the particular customer; and
for individual ones of the functions, an association of the function with a respective event, the association specified by the particular customer;
wherein individual ones of the read-only data stores are specified by input to the content delivery network from the particular customer of the content delivery network, wherein individual ones of the read-only data stores comprise data specified by input from the particular customer and a respective one of the read-only data stores comprises the data for use as an input to a respective one of the functions when the respective function is executed at a respective one of the edge servers at which the respective read-only data store has been received,

wherein the content delivery network provides a customized response based on content supplied or specified by one or more customers of the content delivery network including at least some of the content that is supplied or specified by the particular customer;
after receiving a particular one of the read-only data stores, the functions, and the association of individual ones of the functions with its respective event at a particular one of the edge servers, receiving, at the particular edge server from a client device of a client that is distinct from the particular customer, a request for at least some of the content supplied or specified by the particular customer; and
responsive to receipt of the request, initiating, at the particular edge server, processing of the received request, wherein the processing of the request comprises:
responsive to encountering the event associated with the particular function and determining that the particular event is linked to the particular function according to the association specified by the customer, performing, at the particular edge server, the particular function that comprises customer-defined program code specified by the particular customer, and wherein the customer-defined program code specifies at least some of the data from the particular read-only data store as an input, performing comprising executing, at the particular edge server, the customer-defined program code associated with the event including generating one or more metrics or log entries associated with processing the request, wherein the customer-defined program code is executed using an isolation technique with respect to execution of other user-defined program code at the edge server;
generating, at the particular edge server, a response based at least in part on execution of the customer-defined program code at the particular edge server using the data from the particular read-only data store, including at least some of the data specified by input from the particular customer, as an input to the function in generating the response, wherein the execution of the customer-defined program code comprises retrieval of the data from the particular read-only data store; and
sending the generated response from the particular edge server to the client device.