/wasmesh

wasmesh is a WebAssembly service mesh framework.

Primary LanguageRust

wasmesh

wasmesh(WebAssembly Service Mesh) is a WebAssembly service mesh framework.

Install

git clone https://github.com/henrylee2cn/wasmesh.git
cd wasmesh
cargo install --path=pod

Will be installed to ~/.cargo/bin

try it

maybe pre-install:

rustup target add wasm32-wasi

build example:

cargo build-simple --release

serve it:

  • In wasmesh root path, fast run alias:
cargo run-simple-release

more alias

  • Directly use the command line:
cargo build --target=wasm32-wasi --package=simple --target-dir=service/rust/examples/target --release
wasmesh-pod serve --threads=16 --http=127.0.0.1:9090 service/rust/examples/target/wasm32-wasi/release/simple.wasm

Benchmark

  • MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
  • CPU: 2.3 GHz 4 Cores Intel Core i7
  • Mem: 32 GB 3733 MHz LPDDR4X
ab -c 100 -n 10000 http://127.0.0.1:9090/

Result: 18K QPS