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 of the internet 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. The user experience improves when you move computation to the edge because every edge server becomes a compute node, which reduces latency.

You don't need to modify property configurations within the 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 the code independently.