Do request bodies count against the 128MB of worker memory?

As I understand it, inbound request bodies are buffered before a worker is invoked. The worker can consume the body as a stream, but the data itself is buffered before then. Is this interpretation correct? And if so, does the data for request bodies count against the 128MB of worker memory?
3 Replies
Hello, I’m Allie!
No, it is buffered by another part of the CF stack, and doesn’t enter the runtime until your start consuming the body
jed
jed7mo ago
thanks, @HardlyWorkin'! do you know of any timeouts for uploads like this? seems like CF wouldn’t want to keep large files in memory on the way in…
Hello, I’m Allie!
I don't know of any? There might be something internally, but I don't have access to that
Want results from more Discord servers?
Add your server