Repository navigation
Add standalone gRPC proxy invocation sample - #1927
Conversation
Expose the existing GreeterService and demonstrate generated-client invocation through the caller's Dapr sidecar. Add deadline and cancellation handling, routing and failure tests, and instructions for running the example with two sidecars. Related to dapr#828. Signed-off-by: RakeshCodeLab <205911647+RakeshCodeLab@users.noreply.github.com>
|
I checked the failed integration job. Three existing GrpcProxyTests failed: two with connection refused at 127.0.0.1:37959, and the deadline test received Unavailable instead of DeadlineExceeded. The log shows grpcapp reporting that it was listening on that port. |
Don't worry about it - those are flaky. I'm slowly phasing them out. I'll get this reviewed and merged in in the next couple of days. Thank you for putting this together. |
WhitWaldo
left a comment
There was a problem hiding this comment.
Looks great altogether - please tweak the example text to something more generic and I can merge. Thank you for putting this together, especially so quickly!
Signed-off-by: RakeshCodeLab <205911647+RakeshCodeLab@users.noreply.github.com>
WhitWaldo
left a comment
There was a problem hiding this comment.
Perfect. Thank you! I'll get this merged in after the RC1 is cut.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
|
Thank you @RakeshCodeLab for taking the time to contribute this example! |
|
@holopin-bot @RakeshCodeLab sdk-badge Thank you! Here's a digital badge as a small token of appreciation. |
|
Congratulations @RakeshCodeLab, the maintainer of this repository has issued you a badge! Here it is: https://holopin.io/claim/cmvgexoq10005gz04gtsrnz2t This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. |
Description
This adds a standalone example for calling a gRPC service through Dapr's proxy.
The client uses the existing Greeter proto and
DaprClient.CreateInvocationInvokerto callgrpcsamplethrough its own sidecar. I also mapped the existing GreeterService, added a ten-second deadline and cancellation handling, and documented how to run both sidecars.Validation:
Hello AdaandHello Daprworked through two real sidecars.Issue reference
Related to #828.
Checklist