5 comments

  • netik18 minutes ago
    This a bit of a “yeah, so?” Statement.<p>You can configure teardown and minimum workers, and with a busy site, most of the time requests aren’t going to stop enough for this to matter.
    • seanw26512 minutes ago
      Yes for sure, if your web function is very active this is less of an issue. But not every workload fits that mold.<p>Also: afaict idle time before teardown is not configurable.
  • catlifeonmars24 minutes ago
    Does the ~7 minutes get amortized over sustained load (due to container reuse)? I feel like the article doesn’t consider the shape of the traffic and workloads in its analysis of why lambda is not a good fit.
  • hoppp32 minutes ago
    Isn&#x27;t that a configurable parameter?
    • seanw26522 minutes ago
      Not as far as I can tell. Web Functions let you configure concurrency, maximum environment count, and request rate limits, but there&#x27;s no setting for how long an environment stays alive after its last request. The configurable timeout applies to individual requests, not the environment itself.<p>I measured between 5 and 7 minutes of idle time (after the last request had ended) across six environments. I was able to cut this short by exiting the process myself, but AWS records this as a runtime error so IMO it&#x27;s not suitable to rely on in production.<p>Here&#x27;s the AWS scaling documentation. I&#x27;m happy to be corrected if I missed anything.<p><a href="https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;lambda&#x2F;latest&#x2F;dg&#x2F;web-functions-scaling.html" rel="nofollow">https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;lambda&#x2F;latest&#x2F;dg&#x2F;web-functions-s...</a>
    • ceejayoz32 minutes ago
      Yes. Buried several paragraphs past the headline is a note saying &quot;AWS documents this behavior.&quot;<p>This is marketing for a Lambda competitor.
      • Hnrobert4222 minutes ago
        Hmm. Are you sure? The article says AWS documents the behavior, but there is no way to configure it. They tried forcing an early shutdown, but that caused AWS to record an error event.
      • stymaar23 minutes ago
        What&#x27;s the default though? Because if the 7min thing happen with default settings, then it&#x27;s definitely blog post worthy.
      • seanw26515 minutes ago
        [dead]