8000 Microservices: add redundancy when network calls fail · Issue #21 · eicrud/eicrud · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Microservices: add redundancy when network calls fail #21
Open
@acrosett

Description

@acrosett

We could implement some exponential backoff (up to a few seconds) whenever a microservice call fail due to network issues.

  • Catch the error
  • Check if error is network related
  • Back off
  • Try again
  • (X2)
  • Throw the error if the response still fail

Fix should be implemented in the forwardToBackdoor method.

async forwardToBackdoor(
args: any[],
methodName: string,
msConfig: MicroServiceConfig,
ctxPos: number,
inheritancePos: number,
) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmicroservicesRelated to the microservices configuration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0