-
Notifications
You must be signed in to change notification settings - Fork 374
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
feat(pubsub): implement blocking publisher #10055
feat(pubsub): implement blocking publisher #10055
Conversation
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
Codecov ReportBase: 94.23% // Head: 94.23% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #10055 +/- ##
==========================================
- Coverage 94.23% 94.23% -0.01%
==========================================
Files 1537 1541 +4
Lines 142068 142183 +115
==========================================
+ Hits 133880 133981 +101
- Misses 8188 8202 +14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
115b655
to
a4765c5
Compare
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
namespace google { | ||
namespace cloud { | ||
namespace pubsub { | ||
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN |
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.
nit: newline
* Publish messages to the Cloud Pub/Sub service. | ||
* | ||
* This class is used to publish messages to any given topic. It is intended | ||
* for low-volume publishers: applications sending less than one message per |
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.
s/: applications/. Applications/
* the `ok()` member function in the `StatusOr<T>` returns `true` then it | ||
* contains the expected result. Please consult the #google::cloud::StatusOr | ||
* documentation for more details. | ||
* |
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.
nit: extra blank line
Some applications need a simple way to publish a small number of event to several topics. Or they need to publish with a low rate to many topics. The `pubsub::BlockingPublisher` client is more convenient for such applications than the existing `pubsub::Publisher`. The latter is optimized for high-throughput clients publishing to a single topic.
a4765c5
to
9b214a5
Compare
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
Some applications need a simple way to publish a small number of event to several topics. Or they need to publish with a low rate to many topics. The
pubsub::BlockingPublisher
client is more convenient for such applications than the existingpubsub::Publisher
. The latter is optimized for high-throughput clients publishing to a single topic.Fixes #9301
This change is