You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by Ian Luo <ia...@gmail.com> on 2019/08/02 15:14:12 UTC
Re: Does Hessian protocol support CompletableFuture?
Tien,
Async invocation does support in Dubbo with hessian serialization, but I
don't suggest you to transfer large file because the main trunk is designed
to work well with request-response scenario.
In order to support large file better, we have to wait for 3.0 release, in
which request-stream will be supported.
Regards,
-Ian.
On Mon, Jul 29, 2019 at 8:07 PM tphan.dat@gmail.com <tp...@gmail.com>
wrote:
> Dear experts,
>
> We are using Dubbo for our public APIs.
>
> In order to transfer large files, we read that Hessian is the recommended
> protocol to use:
> http://dubbo.apache.org/en-us/docs/user/references/protocol/hessian.html
>
> We just wonder if this protocol support async invokers, as the response is
> not expected to be returned instantly?!!
> Such as: CompletableFuture<Response> uploadLargeFile(File largeFile);
>
> Best regards
> Tien Dat
>
Re: Does Hessian protocol support CompletableFuture?
Posted by .
Dear Ian
We also read about Dubbo 3.0. And we are so excited waiting for it to be released.
Regarding the request-stream support, does it mean the InputStream (large binary stream) will also be supported?
In the meantime, we will use Dubbo for request-response scenario then.
Best
Tien Dat
On 2019/08/02 15:14:12, Ian Luo <ia...@gmail.com> wrote:
> Tien,
>
> Async invocation does support in Dubbo with hessian serialization, but I
> don't suggest you to transfer large file because the main trunk is designed
> to work well with request-response scenario.
>
> In order to support large file better, we have to wait for 3.0 release, in
> which request-stream will be supported.
>
> Regards,
> -Ian.
>
>
> On Mon, Jul 29, 2019 at 8:07 PM tphan.dat@gmail.com <tp...@gmail.com>
> wrote:
>
> > Dear experts,
> >
> > We are using Dubbo for our public APIs.
> >
> > In order to transfer large files, we read that Hessian is the recommended
> > protocol to use:
> > http://dubbo.apache.org/en-us/docs/user/references/protocol/hessian.html
> >
> > We just wonder if this protocol support async invokers, as the response is
> > not expected to be returned instantly?!!
> > Such as: CompletableFuture<Response> uploadLargeFile(File largeFile);
> >
> > Best regards
> > Tien Dat
> >
>