Hacker News new | ask | show | jobs
by kagx 3269 days ago
> api gateway typically does not introduce latencies

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.

2 comments

>> 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. Very much possible, if your regions are different.
Probably about 100ms or more on each request (to and from). Slower depending on location and network conditions.
Yes very much possible if you are requesting across zones. I did extensive testing within zone and couldn't notice anything more than 2-3ms.