What if my Lambada function required more memory than allocated?

0

Hi Team,

Can anyone please tell my what will happen if my lambda function need more memory for execute the function than allocated memory?

Exa: I have created a lambda function called x and allocated 128mb, but the code I have given in it(x) is required 243mb.

What will be output if I triggered the function?

Pradeep
preguntada hace 2 años309 visualizaciones
2 Respuestas
1

In this cas aws lambda service will throw an OutOfMemory error

respondido hace 2 años
  • Thanks Omid

0
Respuesta aceptada

Your function will fail with an exception.

profile pictureAWS
EXPERTO
Uri
respondido hace 2 años
profile picture
EXPERTO
revisado hace un mes
  • Ok, then what is auto scale in lambda?

  • Auto scale the number of concurrent invocations. If you have one request, we will invoke it once. If you have 100 requests, we will invoke it 100 times. But the function itself should be configured to handle a request in all aspects: memory, ephemeral storage (/tmp) and duration.

  • Thanks for clarifications

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas