Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andeya/wasmesh

wasmesh is a WebAssembly service mesh framework.
https://github.com/andeya/wasmesh

service-mesh wasm wasmer web webassembly

Last synced: 3 months ago
JSON representation

wasmesh is a WebAssembly service mesh framework.

Awesome Lists containing this project

README

        

# wasmesh

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

## Install

```shell
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:

```shell
rustup target add wasm32-wasi
```

build example:

```shell
cargo build-simple --release
```

serve it:

- In wasmesh root path, fast run alias:

```shell
cargo run-simple-release
```

[more alias](.cargo/config.toml)

- Directly use the command line:

```shell
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

```shell
ab -c 100 -n 10000 http://127.0.0.1:9090/
```

Result: 18K QPS

![](doc/wasmesh.png)