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

Configurable throttling schemes on ServerCallback #4372

Merged
merged 9 commits into from
Apr 10, 2020
Merged

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Apr 9, 2020

The throttling scheme used by LinkedStream callbacks on bokeh server has never really worked very robustly. This latest attempt fixes the existing throttle mode and adds two additional modes so that now we support the following throttling modes:

  • adaptive (default): The callback adapts the throttling timeout depending on the rolling mean of the time taken to process each message.
  • throttle: Uses the fixed throttle_timeout as the minimum amount of time between events.
  • debounce: Processes the message only when no new event has been received within the throttle_timeout duration.

I would like to come up with a good way to expose these options.

@philippjfr philippjfr changed the title Switch to debouncing scheme on bokeh ServerCallback Configurable throttling schemes on ServerCallback Apr 10, 2020
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.

1 participant