Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by sakopov on Wednesday October 11, 2023 @02:34PM
(#37848448)
Your mileage may vary, but I think in majority of the cases Fargate is going to be significantly more expensive than Lambda.
[ Parent
| on HN ]
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by nameless912 on Wednesday October 11, 2023 @02:53PM
(#37848716)
But at low request volumes, either is a rounding error to a medium size enterprise, and for personal projects IMO Lambda is a huge PITA.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by meowtimemania on Wednesday October 11, 2023 @03:12PM
(#37848944)
One of lambda's ideal use cases is personal projects. Personal projects usually serve very few requests so lambda's ability to scale to zero results in cost savings.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by hooverd on Wednesday October 11, 2023 @03:00PM
(#37848812)
/shill
The AWS SAM CLI smooths over a lot of Lambda's rough points.
/unshill
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by nameless912 on Wednesday October 11, 2023 @03:06PM
(#37848879)
Gasp, a shill??
I totally believe you, I just can't see how it becomes easier than chucking a container on Fargate or something. Maybe I've just been scarred by lambda rat's nests in the past.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by hooverd on Wednesday October 11, 2023 @04:23PM
(#37849795)
Yeah, the "proper" way to do Lambdas, shown in so many fancy architecture diagrams, is a rat's nest. I don't like APIs on Lambda unless you can shove them into one container with a catchall proxy on API Gateway. They really shine if you're processing SQS messages or EventBridge events. If you aren't using other AWS services and aren't cost engineering, then Lambdas probably aren't worth the headache.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by iends on Wednesday October 11, 2023 @04:32PM
(#37849891)
The serverless framework makes lambda for side projects a breeze.
CDK for everything else.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by cdelsolar on Wednesday October 11, 2023 @03:59PM
(#37849517)
I don't think that's actually true on a GB-second basis (memory * CPU)?
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by hooverd on Wednesday October 11, 2023 @04:25PM
(#37849828)
The cost efficiency of Lambda vs Fargate/EC2 ECS/one of the dozen other ways to run containers on AWS plummets as your RPS goes up.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by Olreich on Wednesday October 11, 2023 @04:27PM
(#37849846)
Lambda is the most expensive thing you can do if you have more than 25% utilization. Fargate is extremely close to modern on-demand EC2 pricing (m7a family).
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by makestuff on Wednesday October 11, 2023 @10:00PM
(#37852656)
Yeah you can run Fargate on EC2 now as well to optimize cost even further.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by oarmstrong on Thursday October 12, 2023 @04:16AM
(#37854694)
Fargate on EC2? Sorry you’ve lost me, I understood Fargate to be a layer of AWS managed compute for ECS or EKS deliberately instead of EC2.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by makestuff on Thursday October 12, 2023 @02:05PM
(#37860692)
https://lumigo.io/blog/comparing-amazon-ecs-launch-types-ec2... You can now specify your launch type to be an ec2 instance. This has the benefit of lower cost but you are responsible for managing the instances ex: security patches, etc.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB
by oarmstrong on Saturday October 14, 2023 @03:51AM
(#37878810)
Right, running ECS on EC2, not Fargate on EC2. When ECS launched it only had the EC2 launch type (where as you said you must manage your machines). Fargate then came along for both ECS and EKS where Amazon managed the machines for you.