Skip to content

Commit

Permalink
Subscriptions: bi-directional subscription & publish streaming.
Browse files Browse the repository at this point in the history
Adds SubscribeTopicEvents proto API which dynamically subscribes to
pubsub topics based on dapr/proposals#52.

This is a basic gRPC implementation of the API whereby, like
Subscription hot-reloading today, subscribing to a topic will reload
_every_ active subscription for the current daprd. In a future PR,
reloading of Subscriptions will be granular to the specific pubsub
topic.

Stream subscriptions are also only active once daprd declares the
application as both present and ready. Dynamic stream subscriptions
should be active both whether a app is running or not, as well as
whether it is ready or not. This will be addressed in a future PR.

Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Jun 20, 2024
1 parent d4f06c2 commit 4a5f939
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/api/grpc/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ var endpoints = map[string][]string{
"publish.v1alpha1": {
daprRuntimePrefix + "v1.Dapr/BulkPublishEventAlpha1",
},
"subscribe.v1": {
daprRuntimePrefix + "v1.Dapr/SubscribeTopicEvents",
},
"bindings.v1": {
daprRuntimePrefix + "v1.Dapr/InvokeBinding",
},
Expand Down

0 comments on commit 4a5f939

Please sign in to comment.