Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.
This repository was archived by the owner on May 3, 2022. It is now read-only.

Allow Retries for Write Operations #4

Open

Description

@joshmgross

The allowRetries option currently only applies OPTIONS, GET, DELETE and HEAD (see RetryableHttpVerbs since those operations are idempotent by default. This is a good default and avoids any unintended side effects.

There should be an option for the client to specify allowing retries for specific write operations (PUT and POST) if the client knows they are idempotent.

Activity

  1. added
    enhancement
    on Jan 10, 2020
  2. bryanmacfarlane commented on Apr 10, 2020

    @bryanmacfarlane
    Contributor

    @joshmgross - since this is so specific to the caller, scenario, and potentially a dangerous thing to do, I think it's best for the consumer to do the retries. Either that or the option is allow unsafeWriteRetries? (sort of how a compiler makes unsafe optional stuff clear). Thoughts?

  3. joshmgross commented on Apr 10, 2020

    @joshmgross
    ContributorAuthor

    I think an unsafeWriteRetries option would work, as it clarifies that it's potentially dangerous.
    Making the consumer implement their own retries is fine, but ends up just duplicating code that's already contained in this package and could potentially introduce issues if not implemented correctly.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions