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

Throttle calls to a custom configuration loader #142

Merged
merged 1 commit into from
Mar 7, 2019

Commits on Oct 26, 2015

  1. Throttle calls to a custom configuration loader

    Many custom configuration loaders will retrieve the
    configuration from an external resource. `Resque::Pool`
    asks the loader for the latest configuration roughly
    once per second. You may want to reduce load on your
    external resource by caching the value, and only
    really fetching the latest configuration after a
    specific amount of time has passed.
    
    Instead of forcing each configuration loader author
    to re-write (and test) this logic, we provide `Resque::Pool::ConfigThrottle`.
    
    See the spec for full details of its behavior.
    joshuaflanagan committed Oct 26, 2015
    Configuration menu
    Copy the full SHA
    9a3be9e View commit details
    Browse the repository at this point in the history