why WASM on Servers?!?!?!

Поділитися
Вставка
  • Опубліковано 29 вер 2024
  • Ok, So here are just some of my ideas and thoughts on why people are excited about wasm on the backend. Let me know your thoughts!
    Let me know what you think and what you are excited about for WASM!!
    Thank you for watching and join the livestreams!
    / marekcounts

КОМЕНТАРІ • 13

  • @b3owu1f
    @b3owu1f 2 місяці тому

    So basically.. you can load various "untrusted code" wasm modules.. leaving their tiny memory footprint for their binary bits, in memory, and then "rubber stamp" an instance of that out blazing fast to handle a given request, then free it up at the end when the response/event goes out. Is that accurate? So the process of creating the instance of some untrusted (but sandboxed "safe") code is much much faster than spinning up a container with the untrusted code.. and likely less code since the container likely has to start a service listen on a port, to accept incoming requests. It also would use a lot less memory correct? Let's assume you use this sort of like FAAS.. and you got 100s or even 1000s of "untrusted" WASM modules on a SSD (nobody uses HDD any more right?). Do you find/load the module EVERY time a request comes in (utilizing some sort of smart routing that knows what WASM module to load and where its at)? Or do you load them all one time, keeping them in memory, so that you can instantly rubber stamp an instance to handle a request? If the latter.. does it consume a lot of memory or because WASM modules are MUCH smaller than the equivalent docker container + code.. you can literally load 100s or more of these at start up (or even dynamically)?

    • @thenullbytes
      @thenullbytes  2 місяці тому

      All of these things you bring up are questions I have asked myself! I've been testing wasm some on stream, and the toolling is definitely not there yet, but... maybe it can get there? From what we have done on stream the last month it has a ways to go but we are learning and exploring!

  • @flongdingdong
    @flongdingdong 2 місяці тому

    Great video! You got me with the clickbait-ish title - I was expecting something Node.js-like and a critical take, but this was super interesting. I'm glad I clicked!
    I also appreciate the lecture-style video, as the 'normal' youtube thing with sped-up speech (and whack video editing for the 'seamless' audio) can be hard to watch after a while, but I understand why it's the norm. Personally I prefer hearing a person speak normally - much easier to follow, particularly for informational content like this.

    • @thenullbytes
      @thenullbytes  2 місяці тому +1

      Thank you! I have not done a lot of these types of videos so please always leave feedback how I could make them better!

  • @f8talerr121
    @f8talerr121 3 місяці тому +1

    your cloud is down

    • @thenullbytes
      @thenullbytes  3 місяці тому +1

      I know!!!! Major power outage kno ked a bunch of stuff offline yesterday, and due to a firmware issue on my cheap hardware they need help booting back up due to their on board clocks! Super annoying!

  • @akshaymishra6475
    @akshaymishra6475 3 місяці тому +1

    What editor/theme do you use?

    • @shenrr6802
      @shenrr6802 3 місяці тому +1

      That looks like obsidian

    • @thenullbytes
      @thenullbytes  3 місяці тому +1

      Obsidian, nvim, vscode are my main editors. I think it's just the default dark on Obsidian, join the live streams and I'm more then happy to show any and all my configuration

  • @thfsilvab
    @thfsilvab 3 місяці тому +2

    That sounds like a good idea, I'm curious by how the runtime will provide virtual memory, though. I'm currently looking for a way to artificially limit the resources of software to come up with ways of running certain workloads with few resources. Will subscribe to know about the updates :)

    • @thenullbytes
      @thenullbytes  3 місяці тому

      Thanks for watching!!! We got it working with kubernetes the other day! it was pretty cool (it was a 3 hour ish slog) but we have more experiments to do with WASM to understand it better! Thanks and let me know if you have any things you would like to explore!

  • @capability-snob
    @capability-snob 3 місяці тому +2

    Wasm is the first widely deployed general purpose capability system. This means more than just isolation - it means that services in wasm can interact directly with one another without having to trust each another. It's great to see this property, which we have been enjoying in high-integrity environments for decades, finally trickle down to popular free tools.

    • @thenullbytes
      @thenullbytes  3 місяці тому +1

      I'm interested in it for sure! I'm not so excited about transpilation part, but we will see how that ends up. The idea is very exciting and has a ton of use cases I'm excited about! Thanks for joining and giving your insights!