‹ BackHN Continuity

Thread

Python Workers are now generally available

270 points · 44 comments · torutofu

  1. stefan_lec · · focus · HN ↗
    How do these perform for cold-starts? I remember one of the disadvantages of using web assembly for Workers was more spin-up time, but maybe they figured out a way around that.
    1. dom96 · · focus · HN ↗
      We’ve got some cold start numbers in our previous blog post: <a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;python-workers-advancements&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;python-workers-advancements&#x2F;.

      There is still more to do here and it’s what we will be focusing on next.

      1. hbcondo714 · · focus · HN ↗
        Thanks, we&#x27;ve been using firecracker VMs with AWS MicroVM[1] and Fly.io Sprites[1] but interested in using Workers instead

        [1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48642510">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48642510

        [2] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46557825">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46557825

      2. aeyes · · focus · HN ↗
        The cold start numbers on that blog post show that its faster than AWS Lambda but your linked benchmark page [1] shows that Lambda is not only much faster but also much more consistent.

        [1] <a href="https:&#x2F;&#x2F;cold.picheta.me&#x2F;#bare" rel="nofollow">https:&#x2F;&#x2F;cold.picheta.me&#x2F;#bare

        1. dom96 · · focus · HN ↗
          It looks like that link is incorrect, it should be pointing at <a href="https:&#x2F;&#x2F;cold.picheta.me&#x2F;#packages" rel="nofollow">https:&#x2F;&#x2F;cold.picheta.me&#x2F;#packages.
    2. amenghra · · focus · HN ↗
      In many cases, the cold-start time might not be visible to users. E.g. if you serve your static content from a CDN, maybe you have stale content in local storage you can show while fetching updated data. If it all happens on a sub-100ms timescale, it should feel quite instant?
    3. csomar · · focus · HN ↗
      My experience with Rust Wasm workers was that they eventually had shorter cold-start and runtime than JavaScript ones because your wasm is significantly more optimized than a JavaScript one that loads whatever packages&#x2F;dependencies into its memory.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.