Skip to content

Give consumers the ability to apply a custom retry strategy for HTTP calls #106

@mikejancar

Description

@mikejancar

🚀 Feature request

Please describe what is needed

The retry strategy for failed HTTP calls in the HttpApiService is currently hardcoded to:

  • a maximum of 3 attempts
  • a retry wait period of 1000 ms
  • ignore HTTP status codes of 0

We should give our consumers the ability to provide a custom strategy.

Describe the solution you'd like

The simplest way to achieve this would be to allow a custom configuration via the AppConfiguration object.

Describe alternatives you've considered

N/A

Additional context

https://github.com/Progressive/oculr-ngx/blob/a6a98dc8f52c1430f9294e554d990e62231aae84/projects/oculr-ngx/src/lib/destinations/http-api/http-api.service.ts#L71

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions