Product limits

Keep these limitations in mind when designing your EdgeWorkers functions. These limitations apply to all EdgeWorkers functions regardless of the selected resource tier.

You can also refer to the limitations that are applied based on the resource tier you selected for your EdgeWorker ID.

Description

Limit

Supported delivery products

Ion
Dynamic Site Accelerator (DSA)
Adaptive Media Delivery
Download Delivery
Object Delivery
API Acceleration

Supported delivery method

Enhanced TLS
When you've applied a custom certificate to a property configuration, the associated Edge hostname uses the .edgekey.net domain.

Standard TLS, used to serve non PCI compliant traffic over HTTP or HTTPS via an edgesuite.net edge hostname, is also supported. At the moment you need to contact your Akamai representative or reach out via the Serverless Slack channel to opt-in to this new feature.

EdgeWorkers is not supported on ‚ÄčAkamai‚Äč CDNs created to accommodate unique regional or governmental requirements. This limitation currently includes China CDN.

Execution restrictions

EdgeWorkers functions cannot be executed by an Edge Site Includes fragment request.

Number of activated EdgeWorker scripts per account

25,000 on the staging network
25,000 on the production network

Number of EdgeWorker scripts executed per request

1

Compressed size for a code bundle

512 KB

Uncompressed size for a code bundle

1 MB

Maximum response header size for HTTP sub-requests

8000 bytes

Maximum body size for responses created through the respondWith() method

2048 characters

Maximum body size for responses from origin to an EdgeWorkers function, using httpRequest()

128 KB when using json() or text() to buffer the entire response.

5 MB when using body to read the response as a stream.

Maximum body size for responses from an EdgeWorkers function to a browser when the response is passed through as a string

100,000 bytes if you pass a string to createResponse in responseProvider

No direct limit if you pass a stream to createResponse in responseProvider.

Maximum body size for responses from an EdgeWorkers function to a client browser

2048 characters if you use request.respondWith() in the onClientRequest or onClientResponse event handler.

JavaScript initialization timeout

The JavaScript initialization time does not include the time it takes to fetch and decompress the EdgeWorkers code bundle.

100 milliseconds

JavaScript CPU initialization timeout

30 milliseconds


Did this page help you?