quickstarts/service_invocation/go/http
Pravin Pushkar 72cc495563
adding multi app run template for service invocation examples (#785)
* 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>
2023-02-03 10:51:41 -08:00
..
checkout Fixes some Go samples (#782) 2023-02-02 16:31:32 -08:00
order-processor Fixes some Go samples (#782) 2023-02-02 16:31:32 -08:00
README.md adding multi app run template for service invocation examples (#785) 2023-02-03 10:51:41 -08:00
dapr.yaml adding multi app run template for service invocation examples (#785) 2023-02-03 10:51:41 -08:00
makefile Removed docker image prefix addition step 2022-07-25 12:28:57 -07:00

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

  1. Run the order-processor app with Dapr in the order-processor folder:
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

  1. Open a new terminal window and navigate to checkout directory, 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:

  1. Run the multi app run template:
sleep 10
dapr run -f .
dapr stop -f .