Skip to content
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: messenger improve latency #108

Merged
merged 36 commits into from
Nov 11, 2024

Conversation

gk-kindred
Copy link
Collaborator

No description provided.

@gk-kindred gk-kindred force-pushed the feature/messenger-state-transition-timings branch from f72b5b9 to 38496b7 Compare November 11, 2024 06:44
@gk-kindred gk-kindred marked this pull request as ready for review November 11, 2024 22:07
@@ -93,6 +93,10 @@ pub struct Configuration {
pub allowed_actions: HashMap<String, Vec<String>>,
/// Channel buffer size for the internal channels between threads
pub channel_buffers: Option<ChannelBuffers>,
/// Commit size to decide how often the certifier topic can be committed by the consumer.
/// The more ofter the commit is done has inverse impact on the latency.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small typo


},
MessengerChannelFeedback::Success(version, key) => {
info!("Successfully processed version={version} with action_key={key}");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be debug instead of info, to reduce a noise in the log?

Copy link
Contributor

@fmarek-kindred fmarek-kindred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that suffix logic was updated, I wonder if we need to update unit tests as well.

@gk-kindred
Copy link
Collaborator Author

The base suffix hasn't changed. Messenger uses the base suffix from talos_suffix and is extended with additional traits and methods. This part doesn't have unit tests, but this is the first area I would like to unit test when I start working on the unit test ticket. Also probably have benchmark tests as well for some of the methods which takes slice from suffix.

@gk-kindred gk-kindred merged commit 5d07b51 into master Nov 11, 2024
2 checks passed
@gk-kindred gk-kindred deleted the feature/messenger-state-transition-timings branch November 11, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants