Limitations

Keep these limitations in mind when designing functions to execute on the edge.

Description Limit
Number of activated EdgeWorker scripts per account 5000 per 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
Edge constructed HTTP response body size 2048 characters
Note: This limitation only applies to the respondWith() method.
Maximum size of a response body when using the json() and text() methods from the HttpResponse Object 128 KB
JavaScript initialization timeout
Note: The JavaScript initialization time includes the Akamai setup and customer code compile.
100 milliseconds
JavaScript CPU initialization timeout 30 milliseconds
CPU timeout for the onClientRequest, onOriginRequest, onOriginResponse, and onClientResponse event handlers 10 milliseconds
CPU timeout for the responseProvider event handler 100 milliseconds
Memory limit per onClientRequest, onOriginRequest, onOriginResponse, and onClientResponse event handler 1 MB
Memory limit per responseProvider event handler 2 MB
Wall time limit for the onClientRequest, onOriginRequest, On OriginResponse, and onClientResponse event handlers 100 milliseconds
Wall time limit for the responseProvider event handler 4 seconds
Supported delivery products Ion

Dynamic Site Accelerator (DSA)

Adaptive Media Delivery

Download Delivery

Object Delivery

API Acceleration
Supported delivery network Enhanced TLS
Note: When you've applied a custom certificate to a property configuration, the associated Edge hostname uses the .edgekey.net domain.
Note: Standard TLS, used to serve non PCI compliant traffic over HTTP or HTTPS via an edgesuite.net edge hostname, is not supported.
HTTP sub-requests Limit
Number of HTTP sub-requests per request 50
Number of concurrent HTTP sub-requests per event handler 5
Maximum buffered response size for HTTP sub-requests from the responseProvider handler 1 MB
Note: This limit does not apply to streamed responses.
HTTP sub-request timeout for the responseProvider event handler 1 second