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

Support async stream serialization/deserialization

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.0.0-beta.4
    • None
    • library
    • None
    • 1

    Description

      Our current implementation of DefaultSerializer doesn't support async serialization/deserialization. However, it is reasonable to assume that other custom serializers may support async. For example, Microsoft's new high-perf System.Text.Json library supports async.

      IDataMapper and ITypeSerializer should offer async overloads for these use cases, which should preferably be added before the 3.0.0 release. DefaultSerializer can just implement them synchronously. The SearchDataMapper implementation can actually use the async approach now, as written.

      The synchronous methods should be maintained, as they will be more performant for K/V operations (which are writing to MemoryStream instead of the network).

      Attachments

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

        Activity

          People

            btburnett3 Brant Burnett
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty