Questions tagged [rsocket]

RSocket is a binary protocol, providing Reactive Streams semantics over the network, for byte stream transports such as: TCP, Websockets, and Aeron.

RSocket is a binary application-level communication protocol, providing Reactive Streams semantics over the network, for byte stream transports such as: TCP, Websockets, and Aeron.

It enables the following symmetric interaction models via async message passing over a single connection:

  • request/response (stream of 1)
  • request/stream (finite stream of many)
  • fire-and-forget (no response)
  • channel (bi-directional streams)

RSocket supports session resumption, to allow resuming long-lived streams across different transport connections. This is particularly useful for mobile<->server communication when network connections drop, switch, and reconnect frequently.

More Information

226 questions
5
votes
2 answers

How do I create a file sending client/server with RSocket?

I can't seem to find any resources/tutorials on RSocket, other than just reading their code on GitHub, which I don't understand. I have a file's path on my server: String serverFilePath; I'd like to be able to download it from my client (using…
James
  • 71
  • 3
4
votes
1 answer

How to retrieve RSocket Data to different tabs?

This is my code, it works only for the tab I am on. I receive a response and everything seems to be working fine, I still do not understand the operation of the technology in its entirety, that is why I go to you. It ends in the…
4
votes
1 answer

How to do an infinite requestStream() in RSocket-JS? What happens when subscription.request() runs out?

I'm trying to create a situation where the RSocket JS client listens to a Spring Boot server. When the server has some data for the client, it sends it and the client onNext() triggers and starts processing/displaying that data. Simple enough,…
4
votes
1 answer

How to tell RSocket to read data stream by Java 8 Stream which backed by Blocking queue

I have the following scenario whereby my program is using blocking queue to process message asynchronously. There are multiple RSocket clients who wish to receive this message. My design is such a way that when a message arrives in the blocking…
Saji
  • 111
  • 6
4
votes
3 answers

Correct usage of LoadbalanceRSocketClient with Spring's RSocketRequester

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…
maximdim
  • 8,041
  • 3
  • 33
  • 48
4
votes
1 answer

RSocket + webflux request-response resilience

Given the following code (using Spring Webflux and RSocket): @MessageMapping("hello.{name}") public Mono greet(@DestinationVariable String name) { return Mono.just("Hello " + name); // or assume this is making a slow http call } The…
Riko Nagatama
  • 388
  • 1
  • 3
  • 15
4
votes
0 answers

RSocket-JS + RSocketResumableTransport not working

RSocketResumableTransport does not seems to be working. I have below code where i am using RSocketResumableTransport but it never connects to the server(spring-boot version 2.4.0-M1). I am using rsocket-websocket-client": "0.0.19" version. Below is…
shankar
  • 73
  • 6
4
votes
1 answer

Is there a way to see the REQUEST_N exchanges in Spring RSocket

I'm using the Spring support for RSocket, specifically the request-stream model. I.e.: @MessageMapping("stream") Flux stream(final SubscriptionMessage request, @AuthenticationPrincipal UserDetails user) { //.... } If I…
BobW
  • 91
  • 6
4
votes
2 answers

How to dynamically add elements to reactor hot flux from another method?

I have a data source service, which takes an observer as a parameter. void subscribe(Consumer onEventConsumer); I want to use flux as a response stream for RSocket. How can I do this? As I see it now, it should be something like Flux
Mr.Ustiik
  • 305
  • 1
  • 5
  • 17
4
votes
0 answers

Using rsocket-js client without Node.js

I'm looking at the documentation https://github.com/rsocket/rsocket-js/blob/master/docs/01-client-configuration.md However I find something is missing, where do you actually get the rsocket-core and rsocket-websocket-client without firing up node…
Fireburn
  • 981
  • 6
  • 20
4
votes
2 answers

Send message only to certain client using websockets with Rsocket and Spring Webflux

I am trying to use Rsocket with websocket in one of my POC projects. In my case user login is not required. I would like to send a message only to certain clients when I receive a message from another service. Basically, my flow goes like this. …
nicholasnet
  • 2,117
  • 2
  • 24
  • 46
4
votes
2 answers

How to resume session with RSocket when RSocket server failed

Ok I am new with RSocket. I am trying to create a simple RSocket client and simple RSocket server. From the research that I have done it says that RSocket supports resumption: It is particularly useful as, when sending a RESUME frame containing…
f.trajkovski
  • 794
  • 9
  • 24
4
votes
1 answer

Using Aeron with RSocket

Good morning, I am trying to use RSocket on top of the Aeron transport protocol. However, it appears that there is no documentation on the topic - did anyone successfully integrate those two technologies together ? Is it ready to be used or still a…
Emmanuel
  • 199
  • 4
  • 7
4
votes
2 answers

Spring RSocketRequester issue when created with "wrap" function

It works fine when I'm creating RSocketRequester like that: @Bean RSocketRequester rSocketRequester(RSocketStrategies rSocketStrategies) { return RSocketRequester.builder() .rsocketStrategies(rSocketStrategies) …
user12372643
  • 113
  • 1
  • 8
4
votes
3 answers

How to design reactive microservices, which have external blocking API calls?

I have some microservices, which should work on top of WebFlux framework. Each server has own API with Mono or Flux. We are using MongoDB, which is supported by Spring (Spring Data MongoDb Reactive). The problem is external blocking API, which I…
Max
  • 1,803
  • 3
  • 25
  • 39
1
2
3
15 16