Hi Kevin,
Here is what we use, works for us in production:
https://gist.github.com/kluyg/46ae3dee9000a358edf9
To unit test it, you'll need to check that your custom retry policy returns
the RetryDecision you want for the inputs.
To verify that it works in production, you can wrap it in a
I can’t seem to find a decent resource to really explain this…
Our app seems to fail some write requests, a VERY low percentage. I’d like
to retry the write requests that fail due to number of replicas not being
correct.