3 ms·
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 reque
by anon223345 4y ago
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
- anonymousDan 4y agoCan 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?
- deleted 4y ago[deleted]
- anon223345 4y agoActually 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