Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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.7k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WebAssembly_workloadをEKSで利用するには.pdf
clouddev-code
September 28, 2024
Transcript
25 slides
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
More Decks by clouddev-code
See All by clouddev-code
CNDW2026_lambdamicroVMs_CI__1_.pdf
cloudevcode
1
140
Agent_Core_Interpreter_その他のSandox環境について.pdf
cloudevcode
0
38
ECSでのinit_containerを利用したOpen_Telmetry自動計装.pdf
cloudevcode
1
230
microVMsのユースケースを考える.pdf
cloudevcode
0
77
cdk8s_Helm_どちらを選ぶべきか_rev.pdf
cloudevcode
0
430
Regional_NAT_Gatewayについて_basicとの違い_試した内容スケールアウト_インについて_IPv6_dual_networkでの使い分けなど.pdf
cloudevcode
1
960
Grafana_LokiをECS_Fargateで構築する観点公開版.pdf
cloudevcode
0
78
ADK_for_Java.pdf
cloudevcode
1
120
initContainerをECSで実現したい.pdf
cloudevcode
0
83
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
650
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.3k
Facilitating Awesome Meetings
lara
57
7.2k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
49k
Embracing the Ebb and Flow
colly
88
5.2k
Docker and Python
trallard
47
4.3k
The SEO identity crisis: Don't let AI make you average
varn
0
630
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
620
Code Reviewing Like a Champion
maltzj
529
40k