Add the EdgeWorkers behavior
This section describes how to enable the EdgeWorkers behavior in Property Manager. When you add the EdgeWorkers behavior you can also define which requests apply EdgeWorkers functions. By limiting the scope you can avoid unnecessary serverless hits to improve performance and reduce cost.
Before you begin, make sure you've reviewed the prerequisites. To complete these steps you need access to Akamai Control Center.
To specify and configure an action to take in the event that an EdgeWorkers function fails, add the Site Failover behavior to your property.
-
Navigate to your property in Control Center.
-
Click Edit.
-
Click Add rule.
-
Enter Hello World EdgeWorkers use case as the name of your rule.
-
Choose a
match criteria
andscope
.You can use Property Manager to scope where and when to execute the EdgeWorkers function. This criteria allows you to define which requests apply EdgeWorkers functions. By limiting the scope you can avoid unnecessary serverless hits.
-
Search for
EdgeWorkers
in available behaviors. -
Change the setting to On.
To disable the EdgeWorkers behavior you can change the setting to OFF.
-
Click Insert Behavior.
-
Select the EdgeWorker ID named Hello World from the list.
-
Save your property.
-
Click the Activate tab.
-
Click the Activate on Staging button.
-
Next, follow these instructions to create the Hello World code bundle.
Updated about 1 year ago