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: batch vald broadcasts when traffic is high #1285

Merged
merged 7 commits into from
Feb 5, 2022

Conversation

cgorenflo
Copy link
Contributor

Description

Introducing a new message queue from which broadcasts can be batched when the traffic becomes too high.

func(err error) bool {
logger := b.logger.With("batch_size", len(msgs))
i, ok := tryParseErrorMsgIndex(err)
if ok && len(msgs) > 1 {
Copy link
Contributor

Choose a reason for hiding this comment

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

any particular reason to check this first?

Co-authored-by: Milap Sheth <milap@axelar.network>
@cgorenflo cgorenflo enabled auto-merge (squash) February 5, 2022 01:01
@cgorenflo cgorenflo merged commit d19d32d into main Feb 5, 2022
@cgorenflo cgorenflo deleted the feat/broadcast_batching branch February 5, 2022 01:05
cgorenflo added a commit that referenced this pull request Feb 5, 2022
haiyizxx pushed a commit that referenced this pull request Feb 5, 2022
cgorenflo added a commit that referenced this pull request Feb 5, 2022
cgorenflo added a commit that referenced this pull request Feb 5, 2022
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.

None yet

3 participants