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

code: Add jitter before emitting RPC requests #585

Open
romac opened this issue Nov 20, 2024 · 3 comments
Open

code: Add jitter before emitting RPC requests #585

romac opened this issue Nov 20, 2024 · 3 comments
Labels
code Code/implementation related good first issue Good for newcomers
Milestone

Comments

@romac
Copy link
Member

romac commented Nov 20, 2024

To avoid a synchronized swarm of client requests hitting the same nodes, we should add some jitter to outbound requests, for example by sleeping for a random amount of time before sending a request.

@romac romac added good first issue Good for newcomers code Code/implementation related labels Dec 3, 2024
@romac romac added this to the Phase 5 milestone Dec 4, 2024
@romac romac added the phase5 label Dec 4, 2024
@romac romac removed the phase5 label Dec 19, 2024
@ameya-deshmukh
Copy link

Hey @romac! Thinking of diving deep into Malachite over the winter break. Can I take this up?

@romac
Copy link
Member Author

romac commented Dec 23, 2024

Of course, have at it! :)

@cason
Copy link
Contributor

cason commented Jan 6, 2025

But this would slow down clients even in the absence of multiple concurrent requests to the same service. Shouldn't be the server to handle this situation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Code/implementation related good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants