Introduction

Learn how to use the EdgeWorkers service to optimize your content delivery.

Who should use this guide?

Developers and admins who want to learn how to quickly implement site enhancements, but who may not have significant experience with Control Center or Property Manager.
Note: If you’re interested in learning more about Akamai’s Content Delivery Network (CDN), refer to the CDN Learning Center.

How can you use this service?

The EdgeWorkers service makes it possible for you to deploy JavaScript functions at the edge and create customized experiences for your website visitors. Like most serverless solutions, EdgeWorkers scripts are invoked at the four different phases of an HTTP request. This provides an opportunity to improve performance, by moving compute closer to your users. Using every edge server as a compute node also accelerates your development and deployment times by applying solutions on a massive scale across the entire, globally distributed, Akamai Intelligent Edge Platform.

Once you add EdgeWorkers to your configuration, developers can activate code outside of Control Center. Just activate custom scripts and efficiently implement site enhancements. You can write functions that access HTTP headers, cookies, and URLs in order to construct complex logic. With access to both content targeting data and device characteristics, you can build personalized solutions based on the location or the type of device making the request. Here are some examples of how you can use the EdgeWorkers service:

  • 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

Get started with the EdgeWorkers service

There are some administrative tasks required to configure your Akamai property to execute EdgeWorkers functions.
Once you’ve done this initial setup, developers can create a code bundle and activate an EdgeWorker version with the UI or activate an EdgeWorker version with the API independently.