You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RSocketFacrory.start() returns Mono<Rsocket> which is reconnect on each usage #730
However, such usage has its own downside. For example, if your connection gets closed for any reason, then you will not be able to reconnect using the given Mono anymore.
Right now I'm working on a version of ReaconnectingRSocket which will take care of such things (#685), but it is not here yet, and implementation mentioned in the PR has a couple of bugs
Activity
OlegDokuka commentedon Dec 11, 2019
Personally, I would recommend caching the created
RSocketinstance like the following:However, such usage has its own downside. For example, if your connection gets closed for any reason, then you will not be able to reconnect using the given
Monoanymore.Right now I'm working on a version of
ReaconnectingRSocketwhich will take care of such things (#685), but it is not here yet, and implementation mentioned in the PR has a couple of bugsvdshb commentedon Dec 11, 2019
Thank you for your response!
With this info I've manage to make a hacky but sustainable Spring configuration which is reconnected only when previous connection is lost.
Maybe someone finds it useful until official solution released: