Skip to content

Files

Latest commit

8df96fd · Aug 12, 2018

History

History

retry

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 5, 2018
Aug 12, 2018
Aug 5, 2018
Aug 5, 2018
Aug 5, 2018

Retry patterns

Handle transient failures to improve application stability

retry

Examples

We have the following applications:

  • One app exposing a REST endpoint to fetch cats:
  • One gateway that transmits the requests to the cat service

Running the example

docker-compose up
# Call the url and check the logs
curl -i http://localhost/cats?maxRetry=10
# Change the query parameter to see the response when the max retry count is reached
curl -i http://localhost/cats?maxRetry=2

Sources