WebAssembly

WebAssembly

📖 Definition

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.

🔗 How Higress Uses This

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.

💡 Examples

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

⚙️ Configuration Example

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

🔄 Related Terms

FAQ

What is 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.
How does Higress support 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.

Learn More About Higress

Explore more Higress features and best practices