Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1206

Allow per-operation timeouts

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 2.5.0
    • 2.4.6
    • library
    • None

    Description

      Allow a per-operation timeout to be specified on CRUD methods, similar to how one can be specified via QueryRequest.Timeout().

      Certain access patterns benefit from the ability to specify different timeouts based on their context.

      Example
      An application that prefers availability and lower latency over consistency may wish to fail an initial get() faster while allowing more time for a fallback getFromReplica() call.

      Pseudocode:
      try

      { get(key, new TimeSpan(0,0,0,0,200)) }

      catch (OperationTimeoutException)

      { getFromReplica(key, new TimeSpan(0,0,0,1)) }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmorris Jeff Morris
            dproctor Dean Proctor (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty