I just wanna do low latency async.
---
Web API -> sync response = 300ms
Web API -> SQS -> Lambda -> Polling for result == 3.3 seconds
---
And 18 second cold starts!
Bingo, I found the problem. Default memory for a lambda is 128MB, which means it allocated minimal CPU and is dog slow. I allocated 1GB of memory & (7x more CPU) and now the overhead is 0.02 seconds.
♡ 2 ↻ 0