a
a
aizatto.com
Build.my
GitHub
Linkedin
Notion
Search…
aizatto.com
Table of Contents
Portfolio, Projects, Tools, Toys
Interview Guide
Engineering Code
Engineering Management
Why GitBook?
Getting into Tech
Personal Goals
Daily Drivers
Contacting Me
Notes
AWS
API Gateway
Cognito
DynamoDB
IAM
Lambda
JavaScript
Node.js
Software Engineering
Technical Due Diligence
Web Development
Archive
More on Notion
Powered By
GitBook
Lambda
Invoke
For some reason the last argument isa file. To output to stdout use
/dev/stdout
1
aws lambda invoke --function-name
$fn
/dev/stdout
Copied!
Limitations
​
https://docs.aws.amazon.com/lambda/latest/dg/limits.html
​
Maximum of 1000 executions at a time
Execution Time
Default is 6 seconds
Just change it to 30 seconds
Maximum is 15 minutes
When using with API Gateway, maximum is 30 seconds
When making web requests, it is easy to pass 6 second limit
Memory
Minimum is 128MB; goes up in 64MB increments
Max is 3GB
When using with Node.js and Express you have to increase to at least 192MB
Python
Debugging is a little harder
For some reason, output isn’t as clean as debugging using Node.js
Debugging
API Gateway
Try command line
sls invoke local —function $f —data $d
aws lambda invoke —function-name $f —post
When not to use Lambda?
You have more than 1000 concurrent connections
When you have predictable traffic
You need something that lasts longer than 15minutes
The latency to fire has to be fast
The deployed code is larger than 50mb
Why I like lambda (or faas in general)
I can treat it as a script that doesn’t have a dependency on my computer
Prototype Projects
​
URL Shortener
​
​
Serverless Prototypes
​
​
build.my
or
https://github.com/aizatto/build.my
​
Previous
IAM
Next - Notes
JavaScript
Last modified
3yr ago
Copy link
Contents
Invoke
Limitations
When not to use Lambda?
Why I like lambda (or faas in general)
Prototype Projects