mirror of https://github.com/dapr/quickstarts.git
* adding mullti app run template for service invocation Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com> * update dotnet to 7 Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com> * remove daprhttpport Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com> * adding markdown validation Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com> --------- Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com> |
||
|---|---|---|
| .. | ||
| checkout | ||
| order-processor | ||
| README.md | ||
| dapr.yaml | ||
| makefile | ||
README.md
Service Invocation
In this quickstart, you'll create a checkout service and an order-processor service to demonstrate how to use the service invocation API. The checkout service uses Dapr's HTTP proxying capability to invoke a method on the order processing service.
Check out the documentation about service invocation for more details.
This quickstart includes one checkout service: Go client service checkout
And one order processor service: Go order-processor service order-processor
Run Go order-processor with Dapr
- Run the order-processor app with Dapr in the
order-processorfolder:
cd ./order-processor
dapr run \
--app-port 6001 \
--app-id order-processor \
--app-protocol http \
--dapr-http-port 3501 \
-- go run .
Run Go checkout with Dapr
- Open a new terminal window and navigate to
checkoutdirectory, then run the Go checkout app with Dapr:
cd ./checkout
dapr run \
--app-id checkout \
--dapr-http-port 3500 \
-- go run .
To stop:
dapr stop --app-id checkout
dapr stop --app-id order-processor
Start all apps with multi app run template file:
- Run the multi app run template:
sleep 10
dapr run -f .
dapr stop -f .