-
Notifications
You must be signed in to change notification settings - Fork 169
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
Optimize jetstream::consumer::pull::Consumer::stream
method.
#529
Conversation
d69ef8e
to
5e3eb1b
Compare
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.
Two nits
ece547f
to
0f9f588
Compare
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
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.
Alright so punting the problems we ran into?
Last bit I'm curious about is the relative performance to main.
Something simple like counting messages over a time span would be a good indicator here.
new approach 735 ms. Asserted payloads etc. |
) | ||
.await | ||
} | ||
pub async fn stream_with_config(&self, config: BatchConfig) -> Result<Stream<'_>, Error> { |
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.
Since we know we can easily run into issues with this, maybe we wanna hold off on the with_config variant til after this week's release?
pub async fn stream_with_config(&self, config: BatchConfig) -> Result<Stream<'_>, Error> { | |
pub async fn stream_with_config(&self, config: BatchConfig) -> Result<Stream<'_>, Error> { |
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.
@caspervonb I will follow up today with:
- make this private
- expose only batch, max bytes and heartbeats.
It's not released yet, so I would not bother with removing it, as it requires removing tests that will be needed the same day (pull with heartbeat).
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 (remember to squash 😁)
No description provided.