Simple example application to demonstrate how you can perform retry operations simply in elixir using a supervised process.
alias RetryDemo.UploadServer
Simulate successful upload:
UploadServer.upload("some_file.doc")
Simulate upload failure with retry logic (any file ending with .fail
):
UploadServer.upload("some_file.fail")