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
No, it is buffered by another part of the CF stack, and doesn’t enter the runtime until your start consuming the body
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…
I don't know of any? There might be something internally, but I don't have access to that