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

Description Limit
Number of activated EdgeWorker scripts per account 200
Number of EdgeWorker scripts executed per request 1
Compressed size for a code bundle 512 KB (524288 bytes)
Uncompressed size for a code bundle 1 MB (1048576 bytes)
Edge constructed HTTP response body size 2048 characters
Event handler JavaScript timeout 100 milliseconds
JavaScript initialization timeout
Note: The JavaScript initialization time includes the Akamai setup and customer code compile.
100 milliseconds
JavaScript CPU initialization timeout 30 milliseconds
Event handler CPU timeout 10 milliseconds
Per event handler memory limit 1 MB