rsocket-java

Correct usage of LoadbalanceRSocketClient with Spring's RSocketRequester

雨燕双飞 提交于 2021-02-10 12:48:15
问题 I'm trying to understand the correct configuration and usage pattern of LoadbalanceRSocketClient in a context of SpringBoot application ( RSocketRequester ). I have two RSocket server backends (SpringBoot, RSocket messaging) running and configuring the RSocketRequester on a client side like this: List<LoadbalanceTarget> servers = new ArrayList<>(); for (String url: backendUrls) { HttpClient httpClient = HttpClient.create() .baseUrl(url) .secure(ssl -> ssl.sslContext(SslContextBuilder

Correct usage of LoadbalanceRSocketClient with Spring's RSocketRequester

青春壹個敷衍的年華 提交于 2021-02-10 12:46:23
问题 I'm trying to understand the correct configuration and usage pattern of LoadbalanceRSocketClient in a context of SpringBoot application ( RSocketRequester ). I have two RSocket server backends (SpringBoot, RSocket messaging) running and configuring the RSocketRequester on a client side like this: List<LoadbalanceTarget> servers = new ArrayList<>(); for (String url: backendUrls) { HttpClient httpClient = HttpClient.create() .baseUrl(url) .secure(ssl -> ssl.sslContext(SslContextBuilder

Spring 5 WebFlux server push notifications via RSocket protocol

旧时模样 提交于 2020-03-23 07:55:18
问题 The case is the following: After as clients A and B established connections with a server via RSocket protocol, each of the clients could be notified with their own event(s) ( event A or event B ) to trigger some action on a client ( event X -> action on client X ). Thanks 回答1: You could achieve it with setup payload. Server: @Controller public class ServerController { private static final Map<String, RSocketRequester> REQUESTER_MAP = new HashMap<>(); @ConnectMapping("client-id") void