Use EdgeWorkers to help optimize content delivery, by deploying JavaScript functions at the edge.

What is EdgeWorkers?

EdgeWorkers is a serverless solution that uses scripts that are invoked at the different phases of an HTTP request. This provides an opportunity to improve performance, by moving compute operations closer to your users.

Once you add EdgeWorkers to your property, you can activate custom scripts and efficiently implement enhancements outside of ‚ÄčAkamai‚Äč Control Center. You can write functions that access HTTP headers, cookies, and URLs in order to construct complex logic.

So, if you want to implement Ion enhancements, but don't have significant experience with Control Center or Property Manager, you can use EdgeWorkers.

Here are some more examples of how you can use EdgeWorkers.

  • Redirect requests based on geography, device, and user-agent.
  • Apply conditional logic to filter traffic and construct responses.
  • Add or remove debug information from an HTTP message.
  • Respond with custom error responses, even when the origin is down.

How to configure EdgeWorkers

There are some administrative tasks required to configure your Ion property to execute EdgeWorkers functions.

  1. Add EdgeWorkers to your contract
  2. Add the EdgeWorkers behavior
  3. Create an EdgeWorker ID

You can find full requirements and usage details in the EdgeWorkers documentation.

Check out the "Hello World" tutorials to get started

We've put together some tutorials that show you how to get an EdgeWorkers function up and running on your site. You'll learn how to set up the EdgeWorkers service and then create and deploy the Hello World code bundle using the EdgeWorkers Management application, API, and CLI.