Skip to content

The SDK needs gRPC service operations as Dapr pub/sub event subscribers. #493

@georgestevens99

Description

@georgestevens99

Describe the proposal

Hello. I am working my way through the Dapr .NET SDK, writing C# code in Visual Studio (including using its debugger to attach to various processes involved) to use the various SDK operations to learn and see if this SDK will work for my needs. I'm done with State Management, which was quite easy thanks to the clear code in the SDK and examples. And have moved on to Pub/Sub.

In Pub/Sub I have completed pub/sub from a gRPC service to a webAPI controller. This was quite easy, again thanks to the clear SDK code and examples.

Now I want my pub/sub event subscriber to be another gRPC service operation. On close inspection of the code I do not see an immediate way to achieve setting up a subscription in C# like as done with the webAPI controller. Nor do I understand how to identify which gRPC service operation in the gRPC service should receive the published event. I have looked at appcallback.proto and some of that seems applicable, yet I do not see a clear way of setting up subscriptions to a specific gRPC service operation.

Please provide a clean way to setup one or more gRPC service operations as subscribers to a pub/sub event and then to dispatch the received event to the designated service operations. Publishing an event via gRPC service ops is nice and clean. That needs to be the case for subscribing and receiving events as well, and without writing much code to get the job done.

gRPC will be popular! And the .NET SDK needs to both publish and subscribe in gRPC services in a clean, low code manner in order to be attractive to Dapr customers.

Thanks,
George

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions