Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WebAssembly_workloadをEKSで利用するには.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
clouddev-code
September 28, 2024
1.6k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WebAssembly_workloadをEKSで利用するには.pdf
clouddev-code
September 28, 2024
More Decks by clouddev-code
See All by clouddev-code
Regional_NAT_Gatewayについて_basicとの違い_試した内容スケールアウト_インについて_IPv6_dual_networkでの使い分けなど.pdf
cloudevcode
1
910
Grafana_LokiをECS_Fargateで構築する観点公開版.pdf
cloudevcode
0
48
ADK_for_Java.pdf
cloudevcode
1
100
initContainerをECSで実現したい.pdf
cloudevcode
0
37
VPC_Lattice検討したが_採用しなかった話.pptx.pptx.pdf
cloudevcode
0
31
Presentation_-_コンテナイメージ高速化技術.pptx.pdf
cloudevcode
0
39
GitHub_Copilot_AgentでするMCP_Streamable_HTTPまで.pdf
cloudevcode
0
120
EKS_Auto_Mode_Deep_Live.pdf
cloudevcode
0
59
re_invent_2024アップデートで実現可能なアーキテクチャを考える.pdf
cloudevcode
1
320
Featured
See All Featured
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
The Cult of Friendly URLs
andyhume
79
6.9k
Scaling GitHub
holman
464
140k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
590
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
Color Theory Basics | Prateek | Gurzu
gurzu
0
360
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
270
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
330
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Paper Plane (Part 1)
katiecoart
PRO
0
9k
Transcript
2024.09.25 JAWS-UG 東京 #15 s.hiruta (@web_se) WebAssembly workloadをEKSでネイティブに動かす には
アジェンダ • WebAssemblyについて • CRI • EKS環境で動かすには • まとめ 2
Self introduction 【名前】 s.hiruta ( @web_se ) 【仕事】 コンテナ、マイクロサービス基盤構築 【興味分野】
Containers、WASM+LLM、 Github clouddev-code zenn clouddevcode 3
Previous LT Slide https://speakerdeck.com/cloudevcode 4
WebAssembly workloadをネイティブに動かしたい。 5
セッションの目的 概要 • Web Assemblyについて • EKSにwasm workloadを動かすには 6
WebAssemblyて? • ブラウザに読み込んで動作する • Google Meet、Google Map • ブラウザ外でも動かせる •
Wasm 0.2だとWasm Componentsもあり 7
WebAssemblyではEdgeでも動かせる • Fastly Compute • Cloudflare workers 8
axum framework 9 • Rustのweb application framework
axum+Rust 10 https://kluften.dev/blog/nebula_chapter1
demo
wasmtime • wasm はそのまま実行することはできない • Java Runtimeのようなものが必要 https://wasmtime.dev/?_fsi=Lcp1SSNJ&_fsi=Lcp1SSNJ
13 Benefit of WASM • Typescript、JavaScriptからwasmにビルドできる • ポータビリティ • 起動がはやい
14 WASMでできないこと • Socket • tokio • aws-sdk-bedrockruntimeもtokioのfull featureと依存するの で利用不可
tokioは、Rustプログラミング用の非同期ランタイムです。WebAssembly 用のtokio_wasiあるが、sync,macros,io-util,rt,timeのfeatureのみ利用 可
CRI https://kubernetes.io/blog/2017/11/containerd-container-runtime-options-kubernetes/
WebAssembly Runtime
Kubernetes • bottlerocket • AmzonLinux2023 • Fargate Profile 17
18
How to Run webassembly workload on EKS • containerd-slim-wasmedgeを入ったWorker Nodeを
作る必要あり 19
EKSクラスタ環境 • 20
finch • wasm OCI artifactのイメージをECRにプッシュ 21
Wasmedge workload • 22
まとめ • wasmがポータビリティがあり、Startupがはやいな ので今後期待できる • Socketなど使えない機能もある 23
索引 • How to Run WebAssembly on Amazon EKS https://aws.amazon.com/blogs/containers/16532-2/
• WASM Component https://zenn.dev/ciscorn/scraps/c0de8cd3804ebd • AXUMでWASM https://qiita.com/ringo-apo/items/b2ccf1668bc6f21e5f4a • Lightning Talk: The Future of Wasm at Fastly https://www.fastly.com/jp/video/lightning-talk-the-future-of-wasm-at-fastly/ 24
25