4 ms·
AWS lambda is used in 2 categories: 1) AWS administration-related actions (required for non-trivial mgmt.) 2) end-user actions (optional). AWS throttles and
by redis_mlc 6y ago
AWS lambda is used in 2 categories:
1) AWS administration-related actions (required for non-trivial mgmt.)
2) end-user actions (optional).
AWS throttles and limits everything, so expecting 100,000 requests in 20 seconds on a default AWS account is unreasonable.
The Cloud doesn't mean unlimited capacity.
Also, I haven't seen anybody version control lambda code, even in compliance environments, so something to investigate.
- VWWHFSfQ 6y agoI guess that I was expecting AWS Lambda to scale up immediately in the same way the ALB or SQS scales up with demand. That assumption was very wrong. Edit: my AWS support rep explained it: Without pre-provisioned capacity, it would take 34 minutes to scale our Lambda functions to the peak concurrency we needed. And it would cost several thousand dollars. Completely insane cost. Also, EFS is ridiculously expensive.
- redis_mlc 6y ago> scale up immediately in the same way the ALB You would need to pre-arrange that with your account manager too. An ALB is hosted on servers, and when you hog those servers, they would need to migrate to bigger.
- binaryblitz 6y ago>Also, I haven't seen anybody version control lambda code, even in compliance environments, so something to investigate. We have anything that gets deployed to lambda go through a jenkins job. Pulls code from GH and builds/uploads it to lambda. Very few people have the ability to manually edit lambda jobs through AWS. While it isn't a perfect solution, it's worked pretty well for us.
- simlevesque 6y ago> Also, I haven't seen anybody version control lambda code, even in compliance environments, so something to investigate. What ? That does not make any sense to me. I know I do and I think many do too.
- philliphaydon 6y ago> Also, I haven't seen anybody version control lambda code, even in compliance environments, so something to investigate. Huh, how is it any different building and deploying to anything else. I store the code in git, build it in team city, and deploy it to S3 using octopus deploy which updates the lambda to point to the new versioned off zip.
- WatchDog 6y agoIt's different because they put that code editor in the lambda console, and some people actually use it. I've built a lot of lambda apps and never used it, pretty much everything I do requires dependencies.
- philliphaydon 6y ago> and some people actually use it Sure, I used a lambda to turn on/off a build server during particular hours. I wrote it directly into the console. For actual applications tho, I don't use the console. Just because the console exists doesn't mean people are flat out not versioning their code.
- garethmcc 6y agoI just want to add in about version controlling Lambda code, this is entirely possible using the available tooling with something like the Serverless Framework at serverless.com