Resource tier limitations

These limitations are unique for each resource tier. There are currently two resource tiers available, Dynamic Compute and Basic Compute.

👍

The limits for the EdgeWorker IDs created without a resource tier will not change. By default, these EdgeWorkers functions will execute using Dynamic Compute. The Dynamic Compute limits are the same as the limits applied prior to the introduction of resource tiers.

Event handlerDescriptionBasic ComputeDynamic Compute
all event handlers Maximum CPU time during initialization60 milliseconds60 milliseconds
Maximum wall time during initialization200 milliseconds500 milliseconds

onClientRequest

onOriginRequest

onOriginResponse

onClientResponse

Maximum memory usage per event handler1.5 MB2.5 MB
Maximum CPU time per event handler10 milliseconds20 milliseconds
Maximum wall time per event handler4 seconds5.5 seconds
Maximum number of HTTP sub-requests allowed from a parent request, per event handler

Note: You can use content fetched using the onClientRequest event handler to modify the original end-user request's cache key. For cache keys modified in this way, you need to use purge by CP Code and not by URL. For instructions on how to purge a CP code see Purge Content by CP code. For instructions on how to create a CP code see Create a CP code.

24
Maximum number of HTTP sub-requests allowed in parallel per request24
Maximum wall time per HTTP sub-request4 seconds5.5 seconds
Maximum response size per HTTP sub-request5 MB5 MB
responseProvider Maximum memory usage for responseProvider2 MB4 MB
Maximum CPU time for responseProvider100 milliseconds200 milliseconds
Maximum wall time for responseProvider4 seconds8 seconds
Maximum number of HTTP sub-requests allowed for responseProvider5050
Maximum number of HTTP sub-requests allowed in parallel for responseProvider55
Maximum wall time per HTTP sub-request during the execution of the responseProvider event handler4 seconds8 seconds
Maximum response size per HTTP sub-request during the execution of the responseProvider event handler 5 MB5 MB