Open neilswingler opened 5 years ago
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
That will work without any new release I suppose. I guess you know best whether to use a Mono\<RSocket> or an RSocket wrapper.
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.