Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-704

Invoke sendAsync as soon as OrderedAsync is created

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • client

    Description

      In OrderedAsync, the messages are sent asynchronously except for the first message. The first message is used to establish the connection. OrderedAsync will wait for the first message to complete before sending the following messages.

      Note that, when sending only two messages, the performance of sending the messages asynchronously is degenerated to sending them sequentially

      Mukul Kumar Singh has discovered a case that can be optimized: an application may send two or more messages and the first message may take a long time to process. In this case, we may send a dummy lightweighted message establish the connection, and then send real messages.

      Attachments

        1. r704_20191023.patch
          16 kB
          Tsz-wo Sze
        2. r704_20191022.patch
          11 kB
          Tsz-wo Sze
        3. r704_20191018.patch
          11 kB
          Tsz-wo Sze
        4. r704_20191011.patch
          4 kB
          Tsz-wo Sze
        5. r704_20191009.patch
          4 kB
          Tsz-wo Sze

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment