5 ms·
I'm still afraid of the latency to setup the environment before executing my function. With python and several pip dependencies, it always takes some time...
by igorsusmelj 6y ago
I'm still afraid of the latency to setup the environment before executing my function. With python and several pip dependencies, it always takes some time...
- symlinkk 6y agoDidn’t they announce that you can use containers with lambdas now? So just put your environment in a container
- yandie 6y agoLambda still needs to load your container. So there's gonna be slow start cost (but hopefully they can improve caching overtime)
- igorsusmelj 6y agoLike Google Cloud Run?
- sciurus 6y agoDid they? I can't find that from a quick Google search. Edit: They announced it today; see https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/ https://aws.amazon.com/blogs/aws/new-for-aws-lambda-containe...
- wongarsu 6y agoEven though it's often sold that way, I don't think Lambda is a good fit for interactive use cases. Unless it's used sparingly you don't really want it serving your website or api. It's much better suited for glue code, cron jobs, processing some work queue, etc.
- martindbp 6y agoCurious: would you need a work queue with auto-scaling lambdas?
- freeqaz 6y agoLambda supports "Provisioned Concurrency" which lets you minimize the "jitter" of cold starts. That said, it still isn't perfect. But it's much more predictable latency-wise, and AWS has managed to get cold starts down to a level where they're quite decent recently (~500ms would be a "bad" one these days). Old benchmarks are dated these days. I wish there were some better ones. Source: I build a Serverless hosting platform built on top of AWS Lambda. https://refinery.io https://refinery.io
- artificial 6y agoHey there, cool service! While looking into it I noticed the green blocks on the home page have a z-index issue with the header I encountered when scrolling down the page on Safari.
- freeqaz 6y agoOh sweet, thanks for the heads up. We're using Webflow for it so we're not owning the CSS. I'll go in and tweak it though!
- kondro 6y agoIf you load all the dependencies outside of the actual event loop, then these will only be loaded in a function's cold start before it is suspended between requests. With this, you're only effectively paying this cold-start costs on first load of a new function (or whilst adding extra concurrency) and they're often kept around for 4-8 hours, even if they don't receive any requests.