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

Websockets vs Reactive sockets

I have recently come across a term 'Reactive sockets'. Up until this point, I used to think websockets are the way to go for full fledged asynchronous style. So what are reactive sockets. This link (http://rsocket.io/) even talks about comparison…
11
votes
3 answers

Spring Boot RSocketRequester deal with server restart

I have a question about Springs RSocketRequester. I have a rsocket server and client. Client connects to this server and requests @MessageMapping endpoint. It works as expected. But what if I restart the server. How to do automatic reconnect to…
George
  • 121
  • 2
  • 6
10
votes
2 answers

Event driven microservices with message brokers (e.g. Kafka) vs reactive programming (RxJava, Project Reactor) plus improved protocols (RSocket)

We all agree that the usual request-response way of communicating microservices via HTTP calls leads to coupling between them. That took us to the event-driven approach in which services publish events that some other services will react to. For…
codependent
  • 23,193
  • 31
  • 166
  • 308
9
votes
1 answer

What does Netifi broker improve over using direct RSocket application communication on a Kubernetes cluster?

Let's suppose I have a Kubernetes cluster where I deploy Spring Boot applications that communicate using RSocket. In order to call each other they would use the Kubernetes service name, so we would be relying of that "registry" for discovery and…
codependent
  • 23,193
  • 31
  • 166
  • 308
7
votes
3 answers

How do I get the remote IP address for an Rsocket connection in SpringBoot

I'm trying to get the remote IP of the browser that connects to a RSocket+SpringBoot webserver. Connection is RSocket over WebSocket. The webserver is Java-8, SpringBoot-2, using RSocket over WebSocket and sending RequestStreams to the browser. I'm…
sr33
  • 83
  • 4
6
votes
0 answers

How to document an RSocket API

I've done a whole API backend with RSocket, and I wonder how can I document my RSocket API ? Are there tools as OpenAPI for HTTP?
nicolidz
  • 462
  • 4
  • 10
6
votes
2 answers

How to support WebSocket transport with Spring Boot RSocket server?

TLDR: What is required to configure a Spring Boot application that exposes an RSocket interface that supports the WebSocket transport? I'm learning about RSocket and Spring Boot at the same time, so please bear with me. In my struggles, I have been…
Vigs
  • 1,286
  • 3
  • 13
  • 30
6
votes
1 answer

How to map all interaction models of RSocket in Spring Boot

There are 4 interaction models provided in RSocket. fire and forget request and response request stream request channel (metadata push) Spring(and Spring Boot) provides RSocket integration, it is easy to build a RSocket server with the existing…
Hantsy
  • 8,006
  • 7
  • 64
  • 109
5
votes
1 answer

Get Message From Kafka, send to Rsocket and Receive it from React client

I am trying to send data from kafka using Spring cloud stream to Rsocket and then represent data on React Here is my configuration. @Configuration public class RsocketConsumerConfiguration { @Bean public Sinks.Many sender(){ …
5
votes
1 answer

What happened to Spring Cloud RSocket

I have a question to the Spring Cloud guys. Approx. a year ago, there were nice presentations about Spring Cloud RSocket. Part of it included RSocket Support in Spring Cloud Gateway, aka. the rsocket-broker. Now I see that…
FloW
  • 139
  • 10
5
votes
2 answers

How to config SSL/TLS in spring boot with rsocket?

I have read the related question in stackoverflow. However, the answer only tell how to config about auth check. I need to encrpt all transferred data with rsocket in spring boot. How can I use tls in spring boot with SSL/TLS. I can't find any…
Kami Wan
  • 724
  • 2
  • 9
  • 23
5
votes
2 answers

Error while connecting to Spring Boot RSocket server from RSocket-Java Client

I am having issue while connecting to Spring Boot RSocket application over TCP. The client when using RSocketRequester works fine but when I try to connect using RSocketFactory client it keep getting errors. Code below. RSocket rSocket =…
user3549576
  • 99
  • 1
  • 4
  • 17
5
votes
1 answer

WebFlux + RSocket + Spring

Can someone tell me or give a ready-made CRUD example using WebFlux, RScoket and Spring (or SpringBoot)? I studied the RSocket documentation, WebFlux, also wrote my simple examples, but I would like to see a real CRUD application using basic methods…
Kirill Sereda
  • 469
  • 1
  • 10
  • 25
5
votes
2 answers

Rsocket Server exception: No handler for destination '' (destination does not pass from client to server)

I wrote a little demo for RSocket message The problem is that I am unable to access the Rsocket endpoint, I get the following exception from the server: The Client-side: configuration: @Bean RSocket rSocket() { return RSocketFactory.connect() …
Roie Beck
  • 1,113
  • 3
  • 15
  • 30
5
votes
3 answers

Stateful Rsocket Application

in my project I want to have multiple clients connecting to a service. I am using the java Rsocket implementation. The service should maintain a state for each client. Now at this point I either can manage the clients by some identifier. This…
Aksim Elnik
  • 425
  • 6
  • 27
1
2 3
15 16