|
|
|
|
|
by mulhoon
1545 days ago
|
|
In one lambda I can load chrome, visit a website, take a screenshot and save it to S3 in around 2s with around 280mb memory used. You could keep chrome open and reuse it if available, but you can't count on it with lambda being stateless. I use this Chromium binary https://www.npmjs.com/package/chrome-aws-lambda |
|
/tmp is ephemeral in the sense that it dies with the Lambda instance, but it is also persistent between multiple serial invocations landing on that instance, even if the instance is frozen and thawed between some of those invocations.
The process memory state on the instance (set up during the Init phase) is also available between invocations.
https://docs.aws.amazon.com/lambda/latest/dg/runtimes-contex...