-
Notifications
You must be signed in to change notification settings - Fork 590
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(sink): support async for pubsub and nats #17358
Conversation
@@ -38,6 +41,7 @@ use crate::sink::writer::{ | |||
use crate::sink::{Result, Sink, SinkError, SinkParam, SINK_TYPE_APPEND_ONLY}; | |||
|
|||
pub const NATS_SINK: &str = "nats"; | |||
const NATS_SEND_FUTURE_BUFFER_MAX_SIZE: usize = 65536; |
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.
Is this value a random value? Or some max queue size value mentioned in nats doc?
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.
Referring to pulsar and KINESIS
@@ -42,6 +44,16 @@ use super::{DummySinkCommitCoordinator, Result, Sink, SinkError, SinkParam, Sink | |||
use crate::dispatch_sink_formatter_str_key_impl; | |||
|
|||
pub const PUBSUB_SINK: &str = "google_pubsub"; | |||
const PUBSUB_SEND_FUTURE_BUFFER_MAX_SIZE: usize = 65536; |
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.
ditto for the random value.
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.
Rest LGTM
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
support async for pubsub and nats
#17095
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.