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.
subWorkers limits
These limits apply to subWorkers in addition to the limits documented above.
📘 Implicit wall time limit of the parent EdgeWorker
If the parent EdgeWorker uses too much wall time waiting for the subWorker to respond, the request will time out. This terminates the request from the original browser.
Flexible composition limits
These limits apply to EdgeWorkers functions created using flexible composition.
📘 The existing Product and Resource tier limits also apply to the parent EdgeWorker and to all of the parent’s child EdgeWorkers. The limits do not apply individually to each EdgeWorker in a combined code bundle. | Description | Example | Limit | | --- | --- | --- | | Maximum dependency tree height from the top-level parent of an active revision | The supported depth of the dependency tree. The number of levels of child EdgeWorkers that a top-level parent can import.
For example, parent EdgeWorker version 1, imports:
-> EdgeWorker 2 version 1 imports
— > EdgeWorker 3 version 1 imports
---> EdgeWorker 4 version 2 imports → maximum height reached | 3 | | Maximum direct dependencies that can be imported by a parent revision | The number of child EdgeWorkers that a top-level parent can directly import.
For example, parent EdgeWorker version 1, revision 3 imports as direct children:
- EdgeWorker 1
- EdgeWorker 2
- EdgeWorker 3
- EdgeWorker 4
- EdgeWorker 5 → maximum imports reached | 5 | | Number of times an active version can be imported by an active revision | The number of parent EdgeWorkers an active child EdgeWorker version can belong to.
For example, EdgeWorker 1, version 1 is imported by:
- EdgeWorker 2 version 1, revision 1
- EdgeWorker 3 version 1, revision 1
- EdgeWorker 4 version 1, revision 2 → maximum number of parents reached | 3 | | Maximum dependencies per revision | The number of dependencies a parent EdgeWorkers function supports, including children and descendants of children. | 30 | | Compressed size for a combined code bundle | | 1 MB | | Uncompressed size for a combined code bundle | | 5 MB |
📘 Refer to the Terminology section in this guide to learn more about the concepts and terms used for flexible composition.
Limits for JavaScript logs delivered via DataStream 2
These limits apply when you use DataStream 2 to deliver JavaScript logs.