-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
56 changed files
with
77 additions
and
139 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Wasm Components | ||
|
||
The Wasm Components and their various configurations for deployment. | ||
|
||
They are currently written in Rust, but could be written in any language that compiles to Wasm. | ||
|
||
## Components | ||
|
||
### [Data init](rust/data-init) | ||
- sets up the various data stores | ||
|
||
### [HTTP controller](rust/http-controller) | ||
- routes HTTP requests to the appropriate service | ||
|
||
### [Products Service](rust/products-service) | ||
- manages the products in **key-value store** | ||
|
||
### [Inventory Service](rust/inventory-service) | ||
- manages the inventory of products in **postgres** | ||
|
||
### [Orders Service](rust/orders-service) | ||
- manages the orders in **postgres** | ||
- calls `inventory-service` | ||
- does not call `products-service`, although it probs should | ||
- publishes `OrderNotification` events to **NATS** | ||
|
||
### [Notification Service](rust/notification-service) | ||
- subscribes to `OrderNotification` events from **NATS** | ||
- prints received messages to `stdout` |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
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
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,12 +1,12 @@ | ||
package platform-poc:http-controller; | ||
|
||
world http-controller { | ||
import wasi:logging/logging; | ||
|
||
import platform-poc:products/products@0.1.0; | ||
import platform-poc:data-init/init-funcs@0.1.0; | ||
import platform-poc:inventory/inventory@0.1.0; | ||
import platform-poc:orders/orders@0.1.0; | ||
|
||
import wasi:logging/logging; | ||
|
||
export wasi:http/incoming-handler@0.2.0; | ||
} |
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
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,10 +1,11 @@ | ||
package platform-poc:orders-service; | ||
|
||
world orders-service { | ||
import wasmcloud:postgres/query@0.1.0-draft; | ||
import wasi:logging/logging; | ||
import platform-poc:inventory/inventory@0.1.0; | ||
import wasmcloud:postgres/query@0.1.0-draft; | ||
import wasmcloud:messaging/consumer@0.2.0; | ||
|
||
|
||
import platform-poc:inventory/inventory@0.1.0; | ||
|
||
export platform-poc:orders/orders@0.1.0; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#! /usr/bin/env fish | ||
|
||
cargo insta test --review --test-runner nextest --target aarch64-apple-darwin |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.