starlight icon indicating copy to clipboard operation
starlight copied to clipboard

Support asynchronous server

Open jovany-wang opened this issue 5 years ago • 7 comments

jovany-wang avatar Sep 26 '19 15:09 jovany-wang

I'd like to support this feature. Please let me know what your thought is.

jovany-wang avatar Sep 26 '19 15:09 jovany-wang

@jovany-wang This is a very useful feature.

wenweihu86 avatar Sep 26 '19 15:09 wenweihu86

OK, I'll finish it in the next several weeks.

jovany-wang avatar Sep 26 '19 15:09 jovany-wang

@wenweihu86 I'd like to use CompletableFuture to support async server with its client. If this sounds good to you, I will send a simple document on this design.

Please let me know your thoughts, thanks.

jovany-wang avatar Dec 01 '19 08:12 jovany-wang

The simplest scenario can be considered as rpc proxy. async server may effectively improve throughput. CompletableFuture may be a good choice. Perhaps the async implementation in the client can also use CompleteFuture instead of callback

FoghostCn avatar Mar 31 '20 09:03 FoghostCn

@FoghostCn
Maybe it's better to support both of the callback client and CompletableFuture client.

Another issue is that we should upgrade the JDK version to 1.8+.

jovany-wang avatar Jul 07 '20 12:07 jovany-wang

Expect asynchrony on the server side. If the server has network operation, asynchronous server can bring more performance improvement. Take a look at joyrpc.

chen-xl-dev avatar Dec 17 '20 09:12 chen-xl-dev