Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> What do you mean by retries If there is an error, the function will be retried: http://docs.aws.amazon.com/lambda/latest/dg/retries-on-error...

> Why would you upload node_modules It is required to: http://docs.aws.amazon.com/lambda/latest/dg/nodejs-create-de...



The node_modules one is rubbish IMO, I think their doco is absurd. You can just compile things down using webpack or such, this makes the package smaller and can be optimized for faster execution as well.

The retry one is new to me, need to read more about it.

Thanks for the info.


Does webpack work for node.js code? I was under the impression that webpack was specifically for front end code.


Node.js code works for frontend code.


I've always built my lambdas before upload and never upload my node_modules folder. It also means that when you get an error, debugging can be tricky.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: