Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

Important Considerations

Christian Weiss edited this page Feb 20, 2016 · 1 revision

The retry logic currently also retries the service call if it received a response with a status code 5xx (Server Error). If your service is actually broken or too busy, this gateway keeps retrying until the configured maximum is reached. It does not yet implement a Circuit Breaker pattern.

Since the gateway retries failed requests, you have to make sure your services are idempotent or do not persist any state in case they fail. There are multiple scenarios where retries are problematic and can lead to logic beeing executed multiple times:

  • The gateway cancels requests after a specified timeout and retries. (Your service should react to this cancellation and abort)
  • The response from your service might not reach the gateway due to network issues which also leads to a retry

Please take a detailed look at the implementation of the retry-logic to see if it fits your needs!