You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "runzhiwang (Jira)" <ji...@apache.org> on 2021/04/29 02:39:00 UTC

[jira] [Commented] (RATIS-1373) Use async model for StreamInfo#applyToRemotes

    [ https://issues.apache.org/jira/browse/RATIS-1373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17335102#comment-17335102 ] 

runzhiwang commented on RATIS-1373:
-----------------------------------

[~szetszwo] hi, what do you think of this ?

> Use async model for StreamInfo#applyToRemotes
> ---------------------------------------------
>
>                 Key: RATIS-1373
>                 URL: https://issues.apache.org/jira/browse/RATIS-1373
>             Project: Ratis
>          Issue Type: Sub-task
>            Reporter: runzhiwang
>            Priority: Major
>
> We use StreamInfo#applyToRemotes to transfer data to to other server, and eventually we call OrderedStreamAsync#sendRequest. So StreamInfo#applyToRemotes finished after sending out request, but sometimes OrderedStreamAsync#sendRequest costs hundred millseconds. So we need to make StreamInfo#applyToRemotes async model, and also keep the order of request belongs to the same stream. To achieve this, we can do like StreamInfo#previos, but seems complicated.



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