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
3
votes
0 answers

How to create a flux based on messages from sqs?

I am trying to create a SQS queue processor that processes messages from a SQS queue and streams them to a client using RSocket. The problem is that I don't know how to do this because the list of messages isn't known beforehand. From what I have…
RatManMan
  • 63
  • 6
3
votes
1 answer

Spring RSocket Security + RSocket-WebSocket-Client (browser)

I am trying to make a site in Vue and backend on Spring. I want to use rsocket to transfer data, but as soon as I add rsocket seurity in spring, I get : 'metadata is malformed' Would like to take a look at a working example using jwt/simpleauth
CKATEPTb
  • 71
  • 7
3
votes
1 answer

C# net RSocket client invalid mime type "binary" with Java RSocket server

I am getting an error 0000 Error {000}: [00000003] Invalid mime type "binary": does not contain '/' var client = new RSocketClient(new WebSocketTransport("ws://127.0.0.1:7000/quotes"), new RSocketOptions() { InitialRequestSize = 3, …
rupweb
  • 3,052
  • 1
  • 30
  • 57
3
votes
1 answer

Does spring-rsocket support return a RejectedSetupException in @ConnectMapping annotated method?

I follow the spring-rsocket-demo project to complete my code. I add some authentication logic in my server side code as follows. You can see I throw a exception in the after the authentication logic 'CLIENT.add(requester)'. I execute the test method…
Kami Wan
  • 724
  • 2
  • 9
  • 23
3
votes
0 answers

RSocket Java(Server) / C# (client) : Cannot decode to [ch.Person]GenericMessage

I want to communicate between a RSocket server (written in java using spring boot rsocket) and a C# client using directly the official rsocket .net library : https://github.com/rsocket/rsocket-net Unfortunately, the java server has trouble to decode…
Alexandre
  • 99
  • 5
3
votes
1 answer

rsocket - how to balance the load

rsocket seems to be a cool idea. I have this question and I could not find a better answer. Lets consider this initial set up. client sends multiple requests to the server-1 sequentially. client --> server-1 server-1 is doing some compute intensive…
RamPrakash
  • 2,218
  • 3
  • 25
  • 54
3
votes
1 answer

rsocket routing metadata using RSocket-Java for Spring Rsocket Server

How do I setup routing metadata (in payload using just RSocket-Java when server is using Spring Boot Rsocket. Flux s = connection.flatMapMany(requester -> requester.requestStream(DefaultPayload.create("Some Message"))) Server is using…
user3549576
  • 99
  • 1
  • 4
  • 17
3
votes
0 answers

Adding CORS Configuration with Spring + RSocket + Websocket

How do I add CORS configuration to restrict to a set of allowed hosts to make requests to a websocket exposed via RSocket? I tried @CrossOrigin annotation without any luck and I have tried adding the below without any luck. All the samples I could…
Shahul
  • 69
  • 3
3
votes
1 answer

Migrating existing Spring Websocket handler to use rsocket

Suppose I have this simple Websocket handler for chat messages: @Override public Mono handle(WebSocketSession webSocketSession) { webSocketSession .receive() .map(webSocketMessage ->…
quarks
  • 33,478
  • 73
  • 290
  • 513
3
votes
0 answers

RSocket resume session/stream after connection is lost

I am using RSocket channel and trying to implement resume functionality, in case the connection to the server is lost. After trying different combinations of resume(), resumeSessionDuration(), resumeStreamTimeout() and resumeCleanupOnKeepAlive()…
3
votes
1 answer

How to configure RSocket security in a Spring Boot application with Spring Security

RSocket seems to be a nice alternative to HTTP/S for microservice to microservice communication. Fortunately Spring Boot already has a smooth integration that eases the configuration of it. However I am missing information about everything related…
codependent
  • 23,193
  • 31
  • 166
  • 308
3
votes
0 answers

Java Rsocket streaming client

this is a continuation of Stateful Rsocket Application thread. Here is my example. We currently have three CORBA objects that are used as demonstrated in the diagram: LoginObject (to which a reference is retrieved via NamingService). Clients can…
Aksim Elnik
  • 425
  • 6
  • 27
3
votes
1 answer

RSocket works with generated data but not with Spring Reactive MongoDB

Resolution summary: In most of the RSocket examples currently out there the server side acceptor is simply constructed as a new object (like new MqttMessageService() below) even in SpringBoot related tutorials. Which is fine if you generate example…
Péter Veres
  • 955
  • 1
  • 10
  • 25
2
votes
1 answer

Is there a way to replace the mirror package for flutter?

this is flutter rsocket-dart code. https://github.com/rsocket/rsocket-dart/blob/master/lib/route/reflection.dart but, I cant't to use this library in flutter, because this package use 'dart:mirrors' packages. So, I want to change this code. but, I…
Too
  • 115
  • 1
  • 9
2
votes
0 answers

Prevent Flux Publisher from going out of memory

I'm trying to use a Flux to stream events to subscribers using RSocket. There can be a huge backlog of events (in the database) and they must be send out in order without any gaps without either flooding the publisher (out of memory) or the…
john16384
  • 7,800
  • 2
  • 30
  • 44
1 2
3
15 16