cloudflare / cloudflare/workerd
Feature request - Configurable subrequest limit
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
Hello!
I've noticed that [workerd doesn't enforce any limits](https://github.com/cloudflare/workerd/blob/5525be752933bcd812efdb6d4dbc1b578cf6dfca/src/workerd/server/server.c%2B%2B#L1752-L1768) and that there are [reasons](https://github.com/cloudflare/workerd/issues/49) for it.
I think, however, the concerns mentioned in that thread are only related to CPU and memory limits. Subrequest limit likely works the same in every platform.
Would it be possible to make this limit configurable somehow so that [Miniflare v3 can expose an option](https://github.com/cloudflare/workers-sdk/issues/4359) for it? This would be useful for our [local runtime](https://github.com/Shopify/hydrogen/blob/main/packages/cli/src/lib/mini-oxygen/index.ts#L16) in Shopify/Hydrogen.
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.