Re:Is serverless insecure? Let's find out
by thenickdude on Sunday August 19, 2018 @04:13AM
(#17793191)
Exactly, it allows your function to cache state between executions if that state won't fit in RAM (up to 500MB). I use this to cache objects from S3 so I can avoid the latency of a round-trip for popular objects.
Yes. It's a common trick to speed up execution. If you have to download a big chunk of data to make your lambda work, you download it to /tmp, and then when you run you first check for it there.
user@host:~ ls /tmp/
user@host:~ ls /tmp/
test
user@host:~ ls /tmp/
user@host:~ ls /tmp/
at_everyone__WHO_IS_MONITORING_THIS_QUESTIONMARK
aws.tgz
file.txt
foo
foo.txt
sshd-tar.gz
test
user@host:~ cat /tmp/egg.js
console.log(process.getuid())
user@host:~ cat /tmp/egg.js
Command failed: cat /tmp/egg.js
cat: /tmp/egg.js: No such file or directory