Questions tagged [spring-rsocket]

Spring support for RSocket Java

Spring support for RSocket Java.

34 questions
1
vote
0 answers

RSocket : RejectedResumeException (0x4): unknown resume token

I am using rsocket starter in Spring Boot (2.5.3). I have a requester and responder set up and its working quite well (for all kind of rsocket communication). The issue is when I am trying to implement resumability option on the requester side. Here…
Bitan Biswas
  • 51
  • 1
  • 8
1
vote
2 answers

RSocket Metadata - custom object

I am playing with rsocket-java. Is there any way to send custom object via metadata.? I saw this code sample in their documenation. RSocketStrategies strategies = RSocketStrategies.builder() .metadataExtractorRegistry(registry -> { …
RamPrakash
  • 2,218
  • 3
  • 25
  • 54
1
vote
0 answers

RSocket Database (Cassandra or Postgresql) Performance study

I am trying to use RSocket for Microservices within my org. As we have lot to communicate and fetch from databases like Cassandra and Postgresql, I observed a dip in performance. When I run a sample Rsocket Client and Rsocket Server that returns a…
1
vote
1 answer

repeatWhenEmpty operator doesn't work in the context of an RSocket websocket request but it does in HTTP calls

I've come across a strange behaviour with the repeatWhenEmpty operator that doesn't make any sense to me. I uploaded a repository on Github with a minimum reproducible sample: https://github.com/codependent/rsocket-rating-service. Consider this…
codependent
  • 23,193
  • 31
  • 166
  • 308
1
vote
1 answer

RSocketRequester doesn't consider datamimeType

Trying to use Protobuf with RSocket, Requester doesn't consider dataMimeType set to application/protobuf or application/vnd.google.protobuf. I get error No decoder Client Application @SpringBootApplication @Slf4j public class…
Karthik Prasad
  • 9,662
  • 10
  • 64
  • 112
0
votes
0 answers

Using Spring RSocket in a traditional Servlet-based Spring application

Is it somehow possible to use Spring's RSocket integration in a "traditional" Servlet-based Spring application without having to sacrifice declarative transaction support or Spring Security integration? If so, how? The objective would be to allow an…
aha
  • 3,702
  • 3
  • 38
  • 47
0
votes
0 answers

How to increase default frame length acceptance of RSocket?

I'm using Angular JS as front end and RSocket (Spring Webflux) in the back end. For sending large file from front end file upload action, I'm chunking file into multiple file parts and consuming it in the I/O stream at the back end. Now, I'm able to…
0
votes
0 answers

RSocketRequestor subscription is not getting cancelled even if the client is closed

When the client is closed, the rsocket server does not receive the cancellation event and ongoing flux subscription till continues. How to cancel the ongoing subscription in server side when client is closed ? Here is how I created the…
0
votes
0 answers

Authenticate with RSocket Client using Spring Security at Request Time

I have read much documentation about Spring Security and the use with RSocket. It is possible to authenticate the client at Setup Time if the client sends authentication metadata along with the SETUP frame. It seems that Spring Security (server…
0
votes
0 answers

Is there a WebFilter alternative in spring-rsocket?

I am implementing a Routing Datasource, where the datasource is picked based on the @Destination dbRoutingKey. For multiple rest endpoints we can inject it into the publisher context in a WebFilter and later use it to determine the lookup key. With…
Zeno
  • 1
  • 1
0
votes
0 answers

Processing headers with rsocket in spring boot application

I am testing RSocket request-response logic and have some problem with processing headers. I am using spring boot 2.7.9 with Kotlin. My Controller: package com.mol.rsocket.controller import com.mol.rsocket.model.HelloRequest import…
0
votes
0 answers

How to send Multipart data over RSocket?

Can someone please provide an example which illustrates how to send Multipart Data(form-data) over Rsocket. I tried using MimeTypeUtils.parseMimeType(WellKnownMimeType.MULTIPART_MIXED.getString()). But I always get No Encoder Found Exception for…
Kaustubh Dixit
  • 91
  • 1
  • 10
0
votes
1 answer

what is the difference between RSocket and Spring webflux websocket?

What is the difference between Spring webflux WebSocket and RSocket? I am trying to implement reactive websocket in my spring boot project but I see RSocket under a separate section on the spring webflux website along with spring…
0
votes
0 answers

Rsocket-java stream: How to replace/update the JWT token within Flux.retryWhen(...)?

Given the rsocket client retrieving data from server using stream semantic, I would like to utilize Flux.retryWhen(retryBackoffSpec) mechanizm to reconnect in case connection is lost. Streaming endpoint on server requires valid JWT tokens to be…
Maciej Lach
  • 1,622
  • 3
  • 20
  • 27
0
votes
1 answer

Rsocket-js Unable to set destination route when connection to channel react native client

I am new to Rsocket and reactive Websocket and I develop an application where I need multiple channels, where my clients can subscribe. Until now I tried 2 solutions but unfortunately non of them workd as I expected. I implemented a reactive…