Shopify如何在浏览器之外使用WebAssembly

On February 24, 2021, Shipit!, our monthly event series, presented Making Commerce Extensible with WebAssembly. The video is now available.

2021年2月24日,我们的月度系列活动Shipit!介绍了《用WebAssembly实现商业可扩展》。该视频现已发布

At Shopify we aim to make what most merchants need easy, and the rest possible. We make the rest possible by exposing interfaces to query, extend and alter our Platform. These interfaces empower a rich ecosystem of Partners to solve a variety of problems. The primary mechanism of this ecosystem is an “App”, an independently hosted web service which communicates with Shopify over the network. This model is powerful, but comes with a host of technical issues. Partners are stretched beyond their available resources as they have to build a web service that can operate at Shopify’s scale. Even if Partners’ resources were unlimited, the network latency incurred when communicating with Shopify precludes the use of Apps for time sensitive use cases.

在Shopify,我们的目标是使大多数商家需要的东西变得简单,而其他的则是可能的。我们通过公开接口来查询、扩展和改变我们的平台,使其余的事情成为可能。这些接口使一个丰富的合作伙伴生态系统能够解决各种问题。这个生态系统的主要机制是一个 "应用程序",一个独立托管的网络服务,通过网络与Shopify进行通信。这种模式很强大,但也伴随着一系列的技术问题。由于合作伙伴必须建立一个能够以Shopify的规模运作的网络服务,因此他们的资源已经捉襟见肘。即使合作伙伴的资源是无限的,在与Shopify沟通时产生的网络延迟也使Apps无法用于时间敏感的使用情况。

We want Partners to focus on using their domain knowledge to solve problems, and not on managing scalable web services. To make this a reality we’re keeping the flexibility of untrusted Partner code, but executing it on our own infrastructure. We choose a universal format for that code that ensures it’s performant, secure, and flexible: WebAssembly.

我们希望合作伙伴专注于使用他们的领域知识来解决问题,而不是管理可扩展的网络服务。为了使这成为现实,我们保持了不受信任的合作伙伴代码的灵活性,但在我们自己的基础设施上执行它。我们为这些代码选择了一种通用的格式,以确保它的性能、安全和灵活性。WebAssembly。

WebAssembly

WebAssembly

What is WebAssembly? According to WebAssembly.org

什么是WebAssembly?根据WebAssembly.org的说法。

“WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and se...

开通本站会员,查看完整译文。

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.148.4. UTC+08:00, 2026-01-25 15:32
浙ICP备14020137号-1 $访客地图$