Re:Ruby on Jets: Like Rails but Serverless
by bigfoot675 on Sunday January 22, 2023 @12:17AM
(#34474558)
You will definitely run into more cold starts though, if that is a consideration for your project
Re:Ruby on Jets: Like Rails but Serverless
by philwelch on Sunday January 22, 2023 @01:25AM
(#34474936)
A serverless function that never cold-starts is just a container.
Re:Ruby on Jets: Like Rails but Serverless
by KyeRussell on Sunday January 22, 2023 @01:48AM
(#34475046)
That doesn’t mean that more cold starts aren’t bad.
Re:Ruby on Jets: Like Rails but Serverless
by philwelch on Sunday January 22, 2023 @04:08AM
(#34475650)
Sure but if you can’t tolerate the added latency of a cold start, serverless might not be right for you.
Conversely, if you’re doing something like processing message queues and you don’t care about latency at all, serverless is perfect.
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.