Tsz-wo Sze created RATIS-759:
--------------------------------

             Summary: Support a stream method to send large messages
                 Key: RATIS-759
                 URL: https://issues.apache.org/jira/browse/RATIS-759
             Project: Ratis
          Issue Type: New Feature
          Components: client, server
            Reporter: Tsz-wo Sze
            Assignee: Tsz-wo Sze


It is inefficient to send a large message using 
send(Message)/sendAsync(Message) in RaftClient.  We already have 
RaftOutputStream implemented with sendAsync(..).  We propose adding the 
following new APIs
{code}
  /** Create a stream to send a large message. */
  MessageOutputStream stream();

  /** Send the given message using a stream. */
  CompletableFuture<RaftClientReply> streamAsync(Message message);
{code} 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to