Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
titleUser-implemented retry logic
while (maxRetries-- > 0)
{
    try
    {
        cache.Put(1, "Hello");
        break;
    }
    catch (Exception e) when (e.GetBaseException() is SocketException)
    {
        // Retry.
    }
}

Current State Summary

  • Java thin client has retry, but it can be dangerous and can't be fine tuned
  • Other thin client don't have retry and user has to write cumbersome code

Proposal

TODO: ClientRetryPolicy interface.


Risks and Assumptions

// Describe project risks, such as API or binary compatibility issues, major protocol changes, etc.

...