AdrKacz / super-duper-guacamole

Awa is a mobile application to make new friends 🔥
https://awa-chat.me
Other
5 stars 1 forks source link

📈 Too Long Cold Start on AWS Lambda #89

Open AdrKacz opened 2 years ago

AdrKacz commented 2 years ago

Describe the bug Cold Starts are too long with our function.

Expected behavior To reduce these cold starts we should not use AWS Layers but instead bundle the dependency and minify them (if we don't minify them, AWS Layers are better).

Source: Lumigo - This is all you need to know about Lambda Cold Starts

Additional context The shorter the cold starts are the less we pay as the faster clients receive responses.

kiwily commented 1 year ago

You can also add a periodic trigger for your lambda to keep it hot.

AdrKacz commented 1 year ago

M'ouais, meilleure façon d'augmenter les coûts pour pas grand chose 🤔 Doit plutôt y avoir de l'optimisation à faire sur le code et les packages utilisé. Voir même changer de language, à voir