by astuyvenberg · 3y ago · 0 comments
There are limits to the number of functions per account, and number of resources per CloudFormation stack (etc); but within those parameters it's usually a good idea to use one function for a specific controller or action. This allows you to limit IAM permissions, configure memory/CPU, and define associated resources at a per-controller level.
Conversely, if you’re doing something like processing message queues and you don’t care about latency at all, serverless is perfect.