Technical

How does EdgeWorkers apply its business logic?

The EdgeWorkers event model contains "hooks" that can be called at specific points throughout the end user request-response workflow. Each event has specific features and capabilities that allow it to transform and modify the request and response as it flows through the Intelligent Edge Platform.

How does the order of execution work?

Metadata actions are performed during the stages where EdgeWorkers events are defined. EdgeWorkers functions do not alter the execution order from the metadata stage or from a top-to-bottom perspective. You can think of EdgeWorkers as a different way to produce a metadata equivalent.

How do security products impact the order of execution?

Security products tend to run prior to delivery features. EdgeWorkers live inside the delivery block of feature applications, so they would typically happen after security features.

How does EdgeWorkers handle errors?

Ultimately, it depends on the error handling options you enable as well as the type of error it is. Generally, you can enable Site Failover to catch EdgeWorkers failures and apply alternate logic. You can also write try/catch blocks in your JavaScript code to handle exceptions.

Can multiple EdgeWorkers fire for a single request?

No, daisy chaining is not allowed at this time. Only one EdgeWorkers function, the last one configured in the delivery property for a given request or response, can apply.


Did this page help you?