4 ms·
If you're going to put everything in a single lambda function that's continually serving HTTP requests, you might as well look at ECS.
by TYPE_FASTER 3y ago
If you're going to put everything in a single lambda function that's continually serving HTTP requests, you might as well look at ECS.
- theshrike79 3y agoECS doesn't a) scale to zero b) scale up to infinity near-instantly. Source: I've rand both a Lambda Monolith and ECS on production and would pick Lambda any day
- baq 3y agoDo you scale to zero for the resume achievement or to actually save money?
- grose 3y agoI like to use it for little side projects, then I can leave them alone forever and not have to shut them down.
- theshrike79 3y agoYep, I've got a side project running on AWS Lambda + DynamoDB for maybe 5 years now. It's only now getting big enough that I'm no longer on the free tier. My bills are around $0.02 a month from API Gateway =)
- theshrike79 3y agoTo actually save money. Mostly due to not needing to have a 24/7 team managing it. AWS Lambda NEVER goes down. And if it does, it's most likely someone messing with DNS or backbone routing again and half the world is broken anyway. It does need skill though, the billing model isn't as clear as "you pay me X euros a month for a server, I don't care what you do with it", but it's not dark magic either.
- goostavos 3y agoJust FYI: You can totally scale ECS down to zero. Our ECS bill hovers around $1/mo because we spin it up on demand based on queue size (It takes a painfully long time to spin up, though).
- HumanOstrich 3y agoI imagine you can scale literally anything down to zero if availability isn't a concern. ¯\_(ツ)_/¯
- theshrike79 3y agoYea, in practice you need at least one node up at all times to process stuff, then start scaling up when queues start filling up.
- mastazi 3y ago> ECS doesn't [...] b) scale up to infinity near-instantly. yes we have some very spiky workloads and we got bitten by that, subsequently we moved away from ECS for this exact reason