by sriram_iyengar · 9y ago · 0 comments
- keep your lambda functions warmed up
- node has better warmup time than java lambdas (not sure of python)
- memory size impact of lambda functions (negligible in most cases)
- manage lambda timeouts
- dynamodb latencies are negligible
- api gateway typically does not introduce latencies
- multitenancy challenges with single store of dynamodb
Python and node are both sub-second, compared to Java's 10+ seconds.
I haven't checked my function thoroughly yet, but I think API gateway introduce quite a bit of latency (at least in my case). My maximum invocation time is 600ms, according to AWS Lambda monitoring tool, but network request takes around 1s (checked in chrome dev tools).
Also, worht noting is that my code is hosted in the us-east region and I'm based in Europe. I'm not sure how much latency this introduce.