- 2
- 0
- 约5.41千字
- 约 26页
- 2025-10-23 发布于北京
- 举报
WebAssembly无服务器和云解决方案
WebAssembly,Serverless,andtheCloud
AgendaIntrotoWebAssemblyDe?ningServerlessWebAssembly+ServerlessIntroducingWaxosuit
IntroductiontoWebAssembly介绍
De?nitionAbinaryinstructionformatforastack-basedvirtualmachine.Wasmisdesignedasaportabletargetforcompilationofhigh-levellanguageslikeC/C++/Rust,enablingdeploymentonthewebforclientandserverapplications-PortableE?icient(StackVM)WriteoncerunanywhereHostagnostic
LimitationsOnlyallowedtoaccesssandboxedmemoryAllfunctionsaccept/return32/64-bitnumbersonlyMemorygrowthcanbeconstrainedbyhostHostfunctionaccessdeterminedsolelybythehost
AdvantagesSecureexecutioncantjumptonon-existentinstructionSecureandisolatedmemoryPortabilitySmall(typically)binariesPerformanceAny*languagecancompiletoWasmAny*languagecanhost/interpretWasm
RawWebAssembly1(module2(func(resulti32)3(i32.const42)4)5(func(param$lhsi32)(param$rhsi32)(resulti32)6(i32.add7(get_local$rhs)8(get_local$lhs)9)10(exporthelloWorld(func0))11(exportadd(func1))12)Noonewantstowritecodelikethisforrealapplications.
De?ningServerless
ServerlessAnyworkloadthatdoesnotowntheendpointsthroughwhichitcommunicatesandisagnostictotheprocessinwhichitishosted.Common,butoptional:Scale-to-ZeroRun-once/BatchStyleSingleFunctionExamplesAWSLambdaGoogleCloudFunctionsAzureServerlessOpenFaaSKnativeWebAssemblyApplicationsoverInfrastructure
WebAssemblyandServerlessEcosystemStatus
WebAssemblyInnovationCranelift-MozillacodegeneratorLucetEarlystages,compilerunWasmBuiltonCraneliftPowersFastlyTerrariumWasmerRuntimeRustJITReliesonCraneliftwapmCloud?are-WebAssemblyWorkers
EscapingtheSandboxwasmwasmwasmWASI LLVM-NativeBinary
Trends*UsingWasmasintermediateformatConverttonativetorunPortabilityoversandbox/safetyJavaScriptandIn-browserexperienceoverserverhosti
原创力文档

文档评论(0)