What makes LLRT the FASTEST JavaScript runtime for Lambda?

แชร์
ฝัง

ความคิดเห็น •

  • @AndreasSchlapbach
    @AndreasSchlapbach 10 หลายเดือนก่อน +1

    Great interview! Are there ideas to link LLRT and V8 later in the sense that loads are transferred depending on their characterstics between engines?

    • @theburningmonk
      @theburningmonk  10 หลายเดือนก่อน

      I don't see that'd make sense for a few reasons:
      1. you'd probably lose any application state, because those need to run as separate processes.
      2. to ship both would also significantly impact your bundle size and therefore cold start performance
      3. if V8 only handles some executions then you'd lose the value of JIT - one of the arguments for not shipping a JIT compiler with LLRT is that Lambda execution environments are short-lived, having both would cut the usefulness of JIT even more
      4. if you'd need to initialize two runtimes, then the cold start time would be the sum of the two

  • @mritunjayshanker8870
    @mritunjayshanker8870 10 หลายเดือนก่อน

    Which metric show the lambda cold start time....or id there some other configurations

    • @theburningmonk
      @theburningmonk  10 หลายเดือนก่อน +1

      The closest approximatation is the initDuration, which is reported in the Lambda REPORT logs, but is not a metric. You can analyze it with CloudWatch Logs Insights.
      There are also some other time associated with downloading the artefact, and allocating a space in the fleet. But those are outside of your control, so it's best to focus on the initDuration, which is how long does it take to initialize the execution environment on a worker instance.