Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasm-compose: simplify the example. (#800)
This commit simplifies the example by removing an unnecessary service layer from the compose component. Now the example either directly talks to a "service" component or composes a new service component that injects a "middleware" component into the execution graph. It also updates the server in the example to Wasmtime 2.0.0.
- Loading branch information
1 parent
1fecc98
commit 5e8639a
Showing
10 changed files
with
52 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
search-paths: | ||
- ../backend/target/wasm32-unknown-unknown/release | ||
- ../middleware/target/wasm32-unknown-unknown/release | ||
- ../service/target/wasm32-unknown-unknown/release | ||
|
||
# Remove the comments below to compose with the middleware component | ||
# instantiations: | ||
# $component: | ||
# arguments: | ||
# backend: middleware | ||
instantiations: | ||
$component: | ||
arguments: | ||
backend: svc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters