-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscriptions: bi-directional subscription streaming. #7747
Conversation
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 <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7747 +/- ##
==========================================
- Coverage 61.39% 57.01% -4.38%
==========================================
Files 265 477 +212
Lines 22609 25809 +3200
==========================================
+ Hits 13880 14716 +836
- Misses 7579 9929 +2350
- Partials 1150 1164 +14 ☔ View full report in Codecov by Sentry. |
Signed-off-by: joshvanl <me@joshvanl.dev>
hot-op-inf-comp test Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7747 +/- ##
==========================================
- Coverage 61.39% 57.01% -4.38%
==========================================
Files 265 477 +212
Lines 22609 25809 +3200
==========================================
+ Hits 13880 14716 +836
- Misses 7579 9929 +2350
- Partials 1150 1164 +14 ☔ View full report in Codecov by Sentry. |
Signed-off-by: joshvanl <me@joshvanl.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Subscriptions: bi-directional subscription & publish streaming. 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 <me@joshvanl.dev> * Updates go.mod go version to 1.22.3 in e2e apps Signed-off-by: joshvanl <me@joshvanl.dev> * Remove small context timeout on httpserver int tests Signed-off-by: joshvanl <me@joshvanl.dev> * Wait for daprd2 to be ready before calling meta endpoint in hot-op-inf-comp test Signed-off-by: joshvanl <me@joshvanl.dev> * Increase int test daprd wait until ready timeout to 30s Signed-off-by: joshvanl <me@joshvanl.dev> * Assert httpendpoint int test resp body with eventually Signed-off-by: joshvanl <me@joshvanl.dev> * Set subscription APIs Alpha1 Signed-off-by: joshvanl <me@joshvanl.dev> --------- Signed-off-by: joshvanl <me@joshvanl.dev> Co-authored-by: Yaron Schneider <schneider.yaron@live.com> Signed-off-by: Elena Kolevska <elena@kolevska.com>
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.