WASM vs Docker Containers vs Kubernetes vs Serverless: The Battle for Cloud Native Supremacy

  Рет қаралды 10,721

DevOps Toolkit

DevOps Toolkit

Күн бұрын

This video explores WASM and compares it with Docker containers, Kubernetes, serverless, and edge to answer the following questions.
- What is WASM?
- Should we use it in browsers?
- Should we replace Docker containers with WASM?
- Should we run it in Kubernetes clusters or replace Kubernetes altogether?
- Is it the future of serverless computing and edge devices?
- Why should we use WASM and, if yes, where should we use it?
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Sponsor: Cast AI
🔗 cast.ai/devopstoolkit 🔗
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
#wasm #webassembly #wasi
Consider joining the channel: / devopstoolkit
▬▬▬▬▬▬ 🔗 Additional Info 🔗 ▬▬▬▬▬▬
🔗 WASM: webassembly.org
🎬 Post-Mortem Documents About Production Issues With Fiberplane: • Post-Mortem Documents ...
🎬 Containers Are Not VMs! Which Base Container (Docker) Images Should We Use?: • Containers Are Not VMs...
▬▬▬▬▬▬ 💰 Sponsoships 💰 ▬▬▬▬▬▬
If you are interested in sponsoring this channel, please use calendar.app.google/Q9eaDUHN8... to book a timeslot that suits you, and we'll go over the details. Or feel free to contact me over Twitter or LinkedIn (see below).
▬▬▬▬▬▬ 👋 Contact me 👋 ▬▬▬▬▬▬
➡ Twitter: / vfarcic
➡ LinkedIn: / viktorfarcic
▬▬▬▬▬▬ 🚀 Other Channels 🚀 ▬▬▬▬▬▬
🎤 Podcast: www.devopsparadox.com/
💬 Live streams: / devopsparadox
▬▬▬▬▬▬ ⏱ Timecodes ⏱ ▬▬▬▬▬▬
00:00 Introduction to Web Assembly (WASM)
00:54 Sponsor: CAST AI
01:35 What is WebAssembly (WASM)?
05:59 WebAssembly (WASM) in Servers
10:18 WASM vs. Docker (Containers)
15:47 WASM vs. Kubernetes
19:33 WASM vs. Serverless
21:31 WASM on Edge
22:14 Why WASM? Should You Use WASM? Where To Use WASM?

Пікірлер: 39
@DevOpsToolkit
@DevOpsToolkit 4 ай бұрын
Are you using WASM? If you are, what are the use-cases where it shines?
@filipeandujar
@filipeandujar 4 ай бұрын
I'm placing my bets on wasm Kubernetes clusters. I did a PoC and the only thing lacking is tooling. I hope it will start changing soon.
@DevOpsToolkit
@DevOpsToolkit 4 ай бұрын
@filipeandujar that's my opinion as well. If we could leverage kubernetes ecosystem with WASM, that could be a winner.
@7siwy1
@7siwy1 4 ай бұрын
I think the great use case for WASM is extending istio service mesh. If you need some very specific customization in terms of routing, rate limiting, security etc. to be added to Envoy, WASM is the way to go.
@mihaigalos279
@mihaigalos279 4 ай бұрын
WASM is relevant if i.e. you want native performance in a browser, that's where it shines: 3D graphics rendering written in i.e. C++ directly in Chrome or similar.
@IvanRizzante
@IvanRizzante 4 ай бұрын
Thanks for another great video! It looks definitively promising, will see about it.
@RichardQuadling
@RichardQuadling 14 күн бұрын
Before 3:29, the idea of Flash was what WASM could have been!
@josefromspace
@josefromspace 4 ай бұрын
Bright future ahead for WASM, sometimes waiting for its maturity is the best thing we can do for a technology. Great video as always.
@cowgod77
@cowgod77 4 ай бұрын
Thanks diving into this topic. I've been wanting to learn more about this buzzword I keep hearing, and I now feel much better informed about the subject, and whether it's worth consideration for my projects in the future.
@sergeyp2932
@sergeyp2932 4 ай бұрын
Judging by the information I found in the web (not tested it yet, though), WASM is already integrated in containers/kubernetes world: WASM modules can be packaged as OCI images and run by containerd with runwasi runtime plugin. Kubernetes already have support for arbitrary RuntimeClasses, so there must be no big dial to run WASM pods alongside with classic ones (based on runc runtime). On the other hand, same runtime plugin system can also made traditional containers more secure the same way as WASI - by inserting protective runtime layer between binary and OS kernel, as gVisor (runcs runtime plugin) does. Finally, can't say that typical container images needed more than two OS/arch variants: Linux/amd64 (includes Intel) and Linux/arm64. All containers I've seen on Windows was run in Docker Desktop, which is just VM with Linux inside :) Heard about native Windows containers, but never seen these in practice.
@mattbutcher8614
@mattbutcher8614 4 ай бұрын
Yeah, you are correct. Wasm, via runwasi, runs quite well in Kubernetes. The kwasm project helps install this. Azure AKS actually supports this out of the box if you enable the feature. And thanks to the OCI artifacts spec, we actually package Wasm apps directly as OCI images now.
@DevOpsToolkit
@DevOpsToolkit 4 ай бұрын
@mattbutcher8614 yeah. Azure is doing great on that front. They are the first major provider to offer wasm in kubernetes. There are some issues with it but i can see it becoming GA very soon.
@LearningIs4fun
@LearningIs4fun 3 ай бұрын
Currently experimenting with web apps using kotlin and jetpack compose! I wouldn't say I'm too impressed but there is a huge potential especially now that the compose is not optimised for wasm but it already seem fast.
@codecrafter_4046
@codecrafter_4046 4 ай бұрын
In my experience crossbuilding containers can take a long time and compiling them once to WASM and run them managed on Kubernetes is a nice choice
@Luther_Luffeigh
@Luther_Luffeigh 4 ай бұрын
I’d love to see K8s supporting Wasm runtimes sometime in this decade, but knowing how K8s progress on major changes, I’m not holding my breath. I have seen articles of successful adoption of Wasm runtimes in HashiCorp Nomad with little effort.
@mehdiyahiacherif2326
@mehdiyahiacherif2326 4 ай бұрын
wasm might ne a hype that will end soon , but it opens up to a lot of possibilities or wasm like systems but imo, if we strip down linux it can be as good as wasm without adding new wasm ish
@mattbutcher8614
@mattbutcher8614 4 ай бұрын
It does. Containerd has a shim called "runwasi" that can execute several types of WebAssembly apps. The kwasm project has installers for several different Kubernetes distributions. Fermyon and Microsoft do a lot of open source work on this.
@perarneng
@perarneng 4 ай бұрын
Wasm is wawesome 🎉❤
@Farrukhw
@Farrukhw 4 ай бұрын
I think the K8 and containers are more flexible in terms of customizations... WASM seems to be acting like an API (but not exactly, I know) and can also be make part of a Container...
@suikast420
@suikast420 4 ай бұрын
Great talk thanks I am using nomad and work in past with k3s. Can you please share your expression nomad I dont understand your crititic at last point.
@DevOpsToolkit
@DevOpsToolkit 4 ай бұрын
In the past i would answer by comparing kubernetes with nomad and docker swarm. Such comparisons are not useful any more mostly because nomad and swarm are dead ends. Industry did not pick them up. Docker gave up on swarm and only hashicorp works on nomad. On the other hand, almost every vendor is investing heavily on kubernetes. It is the winner and the only one widely supported. It will be eventually replaced by something else, that that will not be nomad or swarm but something based on different ideas. Until then, kubernetes is the only bet one can make.
@afewell2
@afewell2 4 ай бұрын
I know its not the same as wasm, but I am very interested in wasmclouds nat overlay network. I think the concept that an optimized m2m messaging protocol could make a lot of sense for distributed microservices applications. Some of the examples I have seen of messaging performance are extremely powerful, and the features you get as a result from a networking perspective are pretty magical. Regardless of the merits of these claims. the big problem is apps need to be written specifically for wasmcloud which of course doesnt invalidate it, just makes the addressable market much smaller as it can only be considered with new apps or drastic refactorings. Perhaps my biggest question with this is should we be more aggressive in exploring alternative network tech for microservice-to-microservice comms whether it be wasmcloud or maybe changing app code further to build m2m messaging around primitive nats constructs, or aside from nats, just given the radical performance deltas it has for certain messaging use cases, should we be focusing more on other alternative network approaches whatever they may be as clearly there seems potential to unlock some big benefits.
@lgrandall
@lgrandall 4 ай бұрын
Hey Art, Liam from CNCF wasmCloud; over the last year we have been investing in pure wasm standards - we migrated the core to the Bytecode Alliance Wasmtime runtime, have full support for WebAssembly Components, and have been migrating to WIT. This both lowers the bar for entry and brings wasmCloud inline with the greater wasm ecosystem. Drop by our Slack or wasmCloud Wednesdays and say hi!
@cramhead
@cramhead 4 ай бұрын
It might be interesting to look into WASM on docker
@DevOpsToolkit
@DevOpsToolkit 4 ай бұрын
I'm interested in ways to run applications both during development and in production. Docker checks only one of those two boxes and, honestly, I'm not sure there is a good use case for running WASM in Docker locally. I'm more interested in the other way around; how to run WASM in production with local execution being a bonus?
@mattbutcher8614
@mattbutcher8614 4 ай бұрын
@@DevOpsToolkit Since it runs in Kubernetes via runwasi, the workflow we use with Docker is to do some local dev there, and then deploy. But there is interesting stuff going on with tools like Docker Compose that should, longer term, make it possible to seamlessly test in Desktop and deploy to Kubernetes or other platforms.
@ZiggleFingers
@ZiggleFingers 4 ай бұрын
native compiled code will always be faster than wasm. wasm runs in a virtual machine, so it is java lite. it will be faster than python or javascript - so use it if your existing codebase is written as such and want a performance gain - especially if you have no idea how to package a container. but if your product is performance oriented you've already probably written it in an appropriate language, and it will be 2x-12x+ faster than wasm as a architecture native binary. Wirth's law: software is getting slower more rapidly than hardware is becoming faster.
@ch4.hayabusa
@ch4.hayabusa 4 ай бұрын
So the main takeaway is, I should move to Liechtenstein
@DevOpsToolkit
@DevOpsToolkit 4 ай бұрын
... or Luxembough.
@renanmonteirobarbosa8129
@renanmonteirobarbosa8129 4 ай бұрын
You are only considering one type of container standard,the OCI. You are ingnoring SIF containers
@DevOpsToolkit
@DevOpsToolkit 4 ай бұрын
I admit that I wasn't aware of SIF containers. What are they? P.S. KZbin does not allow links in comments but if you can send me as a private message on LinkedIn or Twitter, I'll be happy to learn about them.
@orterves
@orterves 4 ай бұрын
ChatGPT 4 says: SIF (Singularity Image Format) Containers Designed for Singularity, a container platform focused on scientific and high-performance computing (HPC) environments. SIF containers encapsulate the environment in a single file, enhancing portability and security. They support encryption, signing, and verification of containers for secure distribution. Ideal for compute-driven tasks, ensuring reproducibility across various computing environments. Less overhead and complexity compared to traditional Docker/OCI containers, beneficial in HPC contexts. (From glancing through the sylabs website this seems generally accurate)
@renanmonteirobarbosa8129
@renanmonteirobarbosa8129 4 ай бұрын
@@orterves SIF was conceived for HPC and the most popular application nowadays is to pre-train, finetune and run inference in LLMs. However there is so much more to it. Because SIF is working much closer to the kernel it does bring performance gains that are unmatched and this made companies like Coreweave to develop microsservice framework for SLURM they call it SUNK. If you have a curiosity there is this awesome book: Foster and Gannon, “Cloud Computing for Science and Engineering”, MIT Press 2017
@lhxperimental
@lhxperimental 4 ай бұрын
Java implemts the same idea. The pendulum has swung back.
@afewell2
@afewell2 4 ай бұрын
to me that is one of the most exciting parts, its like what if we could reinvent the jvm with everything we know today, what if there actually was a truly universal systems interface (1) and (2) it was imbued with the best knowledge we have learned to date and (3) the new component model is amazing and bakes inversion of control into the spec in a really elegant way as it should have always been and not a java afterthought!
@orterves
@orterves 4 ай бұрын
Computing goes in cycles, but each revolution is tighter and smoother than the last.
Dagger: The Missing Ingredient for Your Disastrous CI/CD Pipeline
33:29
OpenFunction: The Best Way to Run Serverless Functions on Kubernetes?
36:54
ВИРУСНЫЕ ВИДЕО / Мусорка 😂
00:34
Светлый Voiceover
Рет қаралды 8 МЛН
NO NO NO YES! (40 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:27
PANDA BOI
Рет қаралды 98 МЛН
WebAssembly (WASM) vs. Docker - Our Expert Analysis
19:53
KodeKloud
Рет қаралды 87 М.
DevOps Is Dead! Long Live Platform Engineering! Did We Get Confused?
20:15
Serverless Vs Container (Lambda Vs Kubernetes)
14:21
Cloud With Raj
Рет қаралды 57 М.
New Wasm Platform And Standard WASIX??
10:27
ThePrimeTime
Рет қаралды 35 М.
Kubernetes Deployment Order and Dependencies Demystified
21:03
DevOps Toolkit
Рет қаралды 6 М.
Why WebAssembly is the future of Web development
7:33
ROULZ
Рет қаралды 179 М.
Crossplane Composition Functions: Unleashing the Full Potential
21:55
Developer Platform Consoles Should Be Dumb
20:18
DevOps Toolkit
Рет қаралды 6 М.
Why spend $10.000 on a flashlight when these are $200🗿
0:12
NIGHTOPERATOR
Рет қаралды 16 МЛН
Эволюция телефонов!
0:30
ТРЕНДИ ШОРТС
Рет қаралды 1,6 МЛН
How Neuralink Works 🧠
0:28
Zack D. Films
Рет қаралды 17 МЛН
Result of the portable iPhone electrical machine #hacks
1:01
KevKevKiwi
Рет қаралды 7 МЛН
Интел подвинься, ARM уже в ПК!
14:06
PRO Hi-Tech
Рет қаралды 158 М.
🔥Новый ЛИДЕР РЫНКА СМАРТФОНОВ🤩
0:33