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

Implement a pattern for dealing with upstream APIs which are slow on the first hit; affects [endpoint] #9233

Merged
merged 7 commits into from
Jun 13, 2023

Commits on Jun 2, 2023

  1. Configuration menu
    Copy the full SHA
    d78e4e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2865b2d View commit details
    Browse the repository at this point in the history
  3. allow ShieldsRuntimeError to specify a cacheSeconds property

    By default error responses use the cacheLength of
    the service class throwing the error.
    
    This allows error to tell the handling layer the maxAge
    that should be set on the error badge response.
    chris48s committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    fb9c636 View commit details
    Browse the repository at this point in the history
  4. add customExceptions param

    This
    
    1. allows us to specify custom properties to pass to the exception
       constructor if we throw any of the standard got errors
       e.g: `ETIMEDOUT`, `ECONNRESET`, etc
    2. uses a custom `cacheSeconds` property (if set on the exception)
       to set the response maxAge
    chris48s committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    0ac8fb6 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Configuration menu
    Copy the full SHA
    e7d434a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d52b475 View commit details
    Browse the repository at this point in the history
  3. errorMessages --> httpErrors

    chris48s committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    b8a184b View commit details
    Browse the repository at this point in the history