Reduce the Latency of Your AWS Lambda Functions

Share this video with your friends

Send Tweet

You may notice that sometimes when you make a query or mutation after not using your app for a while, it will be extra slow. What gives?

There are a couple of things happening. First, a lambda function goes through a "cold-start" after being run for the first time in a while. AWS is downloading the code and spinning up an environment.

Second, if you are using the default settings, your function doesn't have much memory to work with. You can specify the amount of memory your function has available in its configuration.

michaelbruns1
michaelbruns1
~ 2 years ago

Amazing!