Please enable JavaScript.
Coggle requires JavaScript to display documents.
M5 (lamda, AWS batch, ECS, ECR) - Coggle Diagram
M5
lamda
troubleshooting
test
My function will receive high amounts of traffic. What should I do to make sure AWS Lambda can support it?
The first thing that you have to do is to load test your function. Load testing will allow you to know how much
memory your function needs to finish its processes. Once that is done and you can predict the amount of
traffic that will arrive, increase your concurrency limits to allow your function to scale better. That way, you
-
If you did not load test and just increased your function’s RAM capacity, it might not have any large benefit to
your function’s overall performance. It will also hog more of your resources than necessary which will
-
invocation error
-
-
-
■ Your IAM user, or the role that you assume, needs permission to invoke a function
execution error
-
■ If your code takes much longer to run in Lambda than on your local machine, it may be
-
-
-
■ Many libraries, including the AWS SDK, operate asynchronously. To wait for the promise
to resolve into a response, use the await keyword
resource limit
-
128 MB to 3,008 MB, (Max 3GB can’t be change)
Concurrent executions - default is 1,000 which can increase to Hundreds of thousands
-
-
-
-
-
- the client creates a ZIP archive of your code when you author functions in the Lambda console or a toolkit
-
component
Function – a script or program that runs in Lambda. Lambda passes invocation events to your function.
-
● Runtimes – Lambda runtimes allow functions in different languages to run in the same base execution
environment. The runtime sits in-between the Lambda service and your function code, relaying
invocation events, context information, and responses between the two.
● Layers – Lambda layers are a distribution mechanism for libraries, custom runtimes, and other function
-
-
● Event source – an AWS service or a custom service that triggers your function and executes its logic.
-
● Log streams – While Lambda automatically monitors your function invocations and reports metrics to
CloudWatch, you can annotate your function code with custom logging statements that allow you to
-
-
-
-
-