Skip to content

Repository files navigation

Rust example

The Rust implementation of the same topology and business behavior as goexample. Each service and contract module is an independent Cargo package and may be published from its own repository.

The Go implementation is the semantic reference.

Run

make docker-up

Submit an order with at least one in-stock SKU:

curl --fail-with-body \
  -H 'Content-Type: application/json' \
  -d '{"customer_id":"customer-1","items":[{"item_id":"item-1","sku":"SKU-001","quantity":2,"unit_price":10}]}' \
  http://localhost:9091/v1/processorder

Status and metrics:

curl http://localhost:9091/status
curl http://localhost:9091/metrics
curl http://localhost:9092/status
curl http://localhost:9092/metrics

Stop the workspace:

make docker-down

About

Rust example services for GoRunDebug ServiceLib

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages