rsocket-rpc-java icon indicating copy to clipboard operation
rsocket-rpc-java copied to clipboard

Feature request: support for LoadBalancedRSocketMono

Open neilswingler opened this issue 6 years ago • 2 comments

It would be cool if the client stub would accept a Mono<Rsocket> in the constructor so a LoadBalancedRSocketMono could be passed in. Currently my solution is to create a new client stub instance for each request invocation which could have a noticeable memory consumption for a large number of concurrent requests.

neilswingler avatar Sep 18 '19 13:09 neilswingler

We could wrap a the load balancer with an RSocket so that you don't have to create a new: https://gist.github.com/robertroeser/14cbadc21ef26e518fffe4ebcf0fe112

robertroeser avatar Oct 06 '19 17:10 robertroeser

That will work without any new release I suppose. I guess you know best whether to use a Mono<RSocket> or an RSocket wrapper.

neilswingler avatar Oct 11 '19 08:10 neilswingler