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

Improve rest-traffic message delay accuracy #82

Open
stubbsta opened this issue Jul 1, 2024 · 0 comments
Open

Improve rest-traffic message delay accuracy #82

stubbsta opened this issue Jul 1, 2024 · 0 comments

Comments

@stubbsta
Copy link
Contributor

stubbsta commented Jul 1, 2024

The rest traffic has a delay of ~250ms per message per node and then it rests the full delay time (TRAFFIC_DELAY_SECONDS).
The ~250ms delay is due to the time it takes to generate the proof.
If there are many nodes or a very short delay is configured then the message rate can be far off from the expected.
This can cause confusion and make it seem as if there is message loss.

Possible ways to improve the delay mismatch:

  • send messages async
  • implement sending messages in batches to limit the number of messages sent at once)
  • decrease the sleep time by the time taken to send the message
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

No branches or pull requests

1 participant