WebAssembly

WebAssembly

📖 定义

WebAssembly is a portable binary instruction format that supports compilation from multiple programming languages. In gateway scenarios, Wasm plugins can safely and efficiently extend gateway functionality, support hot updates, and ensure security through sandbox isolation.

🔗 在 Higress 中的应用

Higress focuses on the Wasm plugin ecosystem, supporting plugin development in languages such as Go, Rust, and JavaScript, providing a rich official plugin library, and plugins can be hot-updated without restarting the gateway.

💡 示例

  • 1 Wasm plugins run in sandboxes to ensure memory safety
  • 2 Write custom authentication plugins using Go
  • 3 Wasm plugins support lossless hot updates

⚙️ 配置示例

YAML
# Higress Wasm Plugin Configuration Example
plugins:
  - name: custom-auth
    wasm:
      url: oci://registry/custom-auth:v1
    config:
      api_key_header: "X-API-Key"

🔄 相关术语

常见问题

WebAssembly 是什么?
WebAssembly is a portable binary instruction format that supports compilation from multiple programming languages. In gateway scenarios, Wasm plugins can safely and efficiently extend gateway functionality, support hot updates, and ensure security through sandbox isolation.
Higress 如何支持 WebAssembly?
Higress focuses on the Wasm plugin ecosystem, supporting plugin development in languages such as Go, Rust, and JavaScript, providing a rich official plugin library, and plugins can be hot-updated without restarting the gateway.

深入了解 Higress

探索更多 Higress 的功能和最佳实践