‹ BackHN Continuity

Thread

5x faster Edge Functions: V8 isolates to Firecracker MicroVMs

229 points · 106 comments · jbott

  1. torginus · · focus · HN ↗
    This is highly interesting considering AWS invented the MicroVMs for lambda, yet node on lambda is dog slow (both in latency and throughput). I can traumadump on request. I bet they could use some of this tech especially since their use cases are often not too dissimilar (auth validation, rule checking etc)
    1. tomnipotent · · focus · HN ↗
      > they could use some of this tech

      Firecracker is AWS tech, and was behind both Lambda & Fargate. I imagine it's all the enterprisey extras built on top that cause those issues.

      1. nderjung · · focus · HN ↗
        It is originally AWS, though we forked Firecracker ~4 years ago now and maintain an internal version with custom hypercalls (command-and-control from within the VM, POSIX-style fork, etc.) and a number of other features. We regularly pull patches and fixes from upstream Firecracker. You can read about the differences here:

        <a href="https:&#x2F;&#x2F;unikraft.com&#x2F;blog&#x2F;unikraft-vs-firecracker" rel="nofollow">https:&#x2F;&#x2F;unikraft.com&#x2F;blog&#x2F;unikraft-vs-firecracker

        1. tomnipotent · · focus · HN ↗
          Weird time to advertise your product.
          1. fragmede · · focus · HN ↗
            When would you prefer they advertise? Seems entirely relevant.
            1. tomnipotent · · focus · HN ↗
              When they&#x27;re contributing to the conversation. It&#x27;s not relevant.
              1. fragmede · · focus · HN ↗
                How is it not relevant? In what way doesn&#x27;t it contribute?
                1. tomnipotent · · focus · HN ↗
                  It&#x27;s on you to prove it does. In what ways does it contribute?
                  1. fragmede · · focus · HN ↗
                    We now know about their unikraft VM, whereas previous we did not.
                    1. tomnipotent · · focus · HN ↗
                      If only there was an HN guideline about not using the site primarily for promotion.
                      1. fragmede · · focus · HN ↗
                        You said they didn&#x27;t contribute and weren&#x27;t relevant. Whether their account primarily exists for promotion is a separate question.
                      2. pjmlp · · focus · HN ↗
                        As fly by comment, I bet very few HNers actually read those guidelines.
                  2. ascorbic · · focus · HN ↗
                    It&#x27;s relevant because it&#x27;s about TFA! I&#x27;m assuming you didn&#x27;t read it: Netlify uses Unikraft MicroVMs
          2. nderjung · · focus · HN ↗
            Netlify use Unikraft for microVMs; just explaining the variant of Firecracker they are using.
          3. 0xCMP · · focus · HN ↗
            ICYMI:

            &gt; Over the past several months, our team has rebuilt the infrastructure behind Edge Functions, working closely with the team at Unikraft, who wrote about the experience from their side.

      2. zokier · · focus · HN ↗
        fargate is not firecracker
        1. binsquare · · focus · HN ↗
          can confirm that this is true for the fargate product used by consumers.

          as someone who worked on it

        2. tomnipotent · · focus · HN ↗
          From the Firecracker README:

          <a href="https:&#x2F;&#x2F;github.com&#x2F;firecracker-microvm&#x2F;firecracker" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;firecracker-microvm&#x2F;firecracker

          &quot;Firecracker was developed at Amazon Web Services to accelerate the speed and efficiency of services like AWS Lambda and AWS Fargate.&quot;

    2. notatoad · · focus · HN ↗
      seriously - if netlify can do 15ms warm start + 10ms cold start, wtf is lambda doing for the other 1500ms?
      1. chrisweekly · · focus · HN ↗
        did you get the warm and cold numbers reversed?
        1. notatoad · · focus · HN ↗
          that plus sign is addition. netlify claims cold start is only 10ms slower than warm start.
          1. chrisweekly · · focus · HN ↗
            ah, so 15ms warm and 25ms cold. that makes much more sense.
    3. momojo · · focus · HN ↗
      1. What&#x27;s the node + aws story? Did you stick with aws or stay but try a different serverless tech? 2. Is lambda&#x2F;serverless overhyped? I&#x27;m worried about reaching for it too soon.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.