scary example
That's a fantastically contrived example. 75 million function calls a month and nobody thought to do some background number crunching so that each of those calls takes six seconds, not sixty?
150k/month is well beyond the cut-off for 'rent some data centre space and buy some servers' being cheaper, and whether you're on-prem or in the cloud, that's just a horrifically architected service.
No wonder AWS is profitable.