3 Answers
- Newest
- Most votes
- Most comments
2
Using Lambda response streaming you can return by default payloads up to 20 MB, and if you need more, you can increase it. There is no need to increase if you do not need more than 20 MB.
The quotas that show in the Service Quota page are for synchronous and asynchronous invocations. Not for stream invocations. I assume that you should create a support ticket to increase the streaming payload size limit.
0
Ohw ! Seems an issue with Postman. It works perfectly in CLI with Curl. Thanks Uri !
answered a year ago
0
Because when I try to implement a node function with RESPONSE_STREAM, it behaves like it is buffering, he here the code : (I followed this tutorial, and I run in Node 16)
export const handler = awslambda.streamifyResponse(async (event, responseStream, context) => {
responseStream.setContentType("text/plain");
const sentences = [
"1...",
"2...",
"3...",
"4...",
"5...",
"6...",
"7...",
"8...",
"9...",
]
const timer = ms => new Promise(res => setTimeout(res, ms));
for (let i = 0; i < sentences.length; i++) {
responseStream.write(`${sentences[i]}\n`);
await timer(1000);
}
responseStream.end();
});
answered a year ago
Relevant content
- asked a year ago
- asked a year ago
- asked 7 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 3 years ago