go-sdk/examples/grpc-service
mikeee e45054d1f6
introduces go1.22 to tests (and misc cleanup) (#504)
* introduces go1.22

- dapr-bot updated to use go1.22
- adds go1.22 to the test jobs
- adds go1.22 to tooling tests

Signed-off-by: mikeee <hey@mike.ee>

* remove 1.20 tests

Signed-off-by: mikeee <hey@mike.ee>

* dapr-bot workflow changes

- retrieve go version from go.mod
- run go mod tidy rather than go get

Signed-off-by: mikeee <hey@mike.ee>

* bump action versions and release go version is now from go.mod

Signed-off-by: mikeee <hey@mike.ee>

* bump main and tool mod files to 1.21

Signed-off-by: mikeee <hey@mike.ee>

* fix dapr-bot test

Signed-off-by: mikeee <hey@mike.ee>

* test dapr-bot using go version from go.mod

Signed-off-by: mikeee <hey@mike.ee>

* bump action versions and remove explicit caching

Signed-off-by: mikeee <hey@mike.ee>

* bump examples to go1.21 and bump deps

Signed-off-by: mikeee <hey@mike.ee>

* bump compatibility check to 1.21 in the make flow

Signed-off-by: mikeee <hey@mike.ee>

* bump to dapr1.13rc2

Signed-off-by: mikeee <hey@mike.ee>

* tidy sums

Signed-off-by: mikeee <hey@mike.ee>

* empty commit to trigger tests (flaky example service validation)

Signed-off-by: mikeee <hey@mike.ee>

* remove conditionals for modtidy/checkdiff runs

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
2024-02-08 10:08:28 -08:00
..
client Add example for dapr grpc proxy mode (#414) 2023-06-06 12:00:37 +08:00
server Add example for dapr grpc proxy mode (#414) 2023-06-06 12:00:37 +08:00
README.md fix: Overhaul the validation action (#495) 2024-01-19 09:07:59 -08:00
go.mod introduces go1.22 to tests (and misc cleanup) (#504) 2024-02-08 10:08:28 -08:00
go.sum introduces go1.22 to tests (and misc cleanup) (#504) 2024-02-08 10:08:28 -08:00

README.md

Grpc Service Example with proxy mode

The examples/grpc-service folder contains a Dapr enabled server app and a client app that uses this SDK to invoke grpc methos via grpc stub, The server app is available as gRPC. The client app can target either one of these for service to service and binding invocations.

Step

Prepare

  • Dapr installed

Run server as a dapr app

dapr run --app-id grpc-server \
         --app-port 50051 \
         --app-protocol grpc \
         --dapr-grpc-port 50007 \
         go run ./server/main.go

Run grpc client

dapr run --app-id grpc-client \
         go run ./client/main.go

Cleanup

dapr stop --app-id grpc-server