Function Types
- Edge functions can only be used in the Client request received and Before response to client phases.
Cloud functions: A cloud function does not require a template. When a client request triggers the cloud function rule, CDN calls a FunctionGraph API to execute the function.
- Cloud functions are only supported in the Before origin pull phase.
Worker functions: To create a worker function, use the FunctionGraph template designed for CDN. When a client request triggers the worker function rule, CDN calls a FunctionGraph API to execute the function.
- Worker functions are only supported in the Client request received phase.