grpc-service

module
v0.0.0-...-33180dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: Apache-2.0

README

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL