Re:A bank runs serverless with PHP and AWS Lambda
by deleugpn on Wednesday November 01, 2023 @12:11PM
(#38100358)
As you can see on the website (https://bref.sh/) there's 13 billion monthly AWS Lambda invocations using Bref (PHP).
[ Parent
| on HN ]
Re:A bank runs serverless with PHP and AWS Lambda
by solardev on Wednesday November 01, 2023 @12:19PM
(#38100480)
That doesn't really say much. Isn't the whole point of serverless to support high-volume, individually-inexpensive, invocations?
For context, 13B is like roughly a <strike>$2000</strike> (edit: more like $4000, sorry) spend on Cloudflare Workers, similar cost (harder to calculate but ballpark similar) on Lambda. That could be a single company spending the bulk of that.
(Further edit: Lambda pricing is way off too. See reply below.)
Re:A bank runs serverless with PHP and AWS Lambda
by deleugpn on Wednesday November 01, 2023 @12:25PM
(#38100606)
That ballpark is not even close to the park. My company spends ~$500/month on AWS Lambda and we're doing about 2M/req/day with Bref. There's still 12B 940M requests to account for
Re:A bank runs serverless with PHP and AWS Lambda
by solardev on Wednesday November 01, 2023 @12:32PM
(#38100742)
Thank you, and sorry about that!
How come Lambda is so expensive for you?
At 13000M invocations/mo, that's $2600 in requests. Is it the GB-seconds duration charge that get you?
Re:A bank runs serverless with PHP and AWS Lambda
by deleugpn on Wednesday November 01, 2023 @12:44PM
(#38100971)
The GB-second is the relevant cost of AWS Lambda. # of invocations is pretty irrelevant.
60'000'000 requests
1536MB RAM
300ms response avg
(calculation includes free tier):
Request costs: $11.80/month
Execution costs: $443.42/month
Total AWS Lambda costs: $455.22/month