Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Legit wondering why under the hood, how come Google Cloud Functions handle promises and promise chaining so much better than AWS Lambda

I have to offload requests to state machines in AWS Lambdas which is a pain when prototyping



Can you expand on what you mean by this? You mean that Lambda forces you into an async style of programming where you queue events to handle completion of long running subrequests?


Actually what I’m saying is lambdas, when doing tens of thousands of invocations, will handle async requests much worse than GCP Cloud Functions or KNative

Basically the lambdas, even when you return promises, or set long timeouts, will conclude before completing a request

If you’re doing 5 lambda invocations you don’t really see this, but when you’re doing a lot of them you can see in the statistics a huge failure compared to GCloud Functions UNLESS you offload each fetch to its own state machines, which is technically the correct way to do it but is way over engineered compared to GCloud




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: