Lambda - Streaming - Increase quota

0

Hi,

I would like to use RESPONSE_STREAM option on lambda. According to the documentation, we need to increase the payload size: 20 MB instead of 6MB. I tried to increase these values in quotas, but it seems impossible. Not adjustable. How to make it changeable ?

Asynchronous Payload Synchronous Payload

Thanks for help

질문됨 일 년 전346회 조회
3개 답변
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.

profile pictureAWS
전문가
Uri
답변함 일 년 전
0
수락된 답변

Ohw ! Seems an issue with Postman. It works perfectly in CLI with Curl. Thanks Uri !

답변함 일 년 전
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();
});
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠