- Newest
- Most votes
- Most comments
In the Lambda documentation it talks to the limits on function size (50 MB zipped; 250 MB unzipped) so if your function needs to be larger than that then you'll need to go to a container.
That said: The smaller your function (usually through less dependencies) the better. It will load faster and (most probably) initialise quicker as well.
Otherwise, the only other advice is that functions should be (more or less) "single purpose" - that's the whole concept behind building microservices. But you can go too far down that path too. So it's a "how long is a piece of string" question - the best thing is to do what is manageable for you.
You're right I think I should break it down.
I wanted to respond and say it's so refreshing to hear someone respond with a real "there isn't really a right or wrong answer"... how far do you go with the division? 100% understand what you are saying here
I will re-evaluate my use case and rearchitect it - TBH I may even use a combination of function and container. Much appreciated.
Relevant content
- asked 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago