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

Experiment with generic debouncing code #1290

Open
aaronlehmann opened this issue Aug 1, 2016 · 1 comment
Open

Experiment with generic debouncing code #1290

aaronlehmann opened this issue Aug 1, 2016 · 1 comment

Comments

@aaronlehmann
Copy link
Collaborator

The dispatcher implements debouncing when sending and receiving task updates.

The scheduler implements debouncing on commit events.

We should look into having a common implementation of "coalesce the following events that happen with a gap up to X ms between then, with a maximum latency of no more than Y ms". This could be tested intensively and avoid code duplication.

@stevvooe
Copy link
Contributor

stevvooe commented Aug 2, 2016

https://godoc.org/golang.org/x/time/rate is a solid package for generalized rate limiting.

This is also a model I'd like to see in go-events: coalesce events into N sized blocks with limited delay (say 100ms or 10ms).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants