rsocket-java icon indicating copy to clipboard operation
rsocket-java copied to clipboard

Rework `Payload` refCnt management

Open OlegDokuka opened this issue 5 years ago • 2 comments

Currently, RSocket follows Netty style of managing refCnt which is somewhat challenging (and not necessarily needed to be like in pure Netty).

Therefore, I would like to propose redesign that and follow Reactor-Netty way to manage refCnt, so we will be responsible for releasing a Payload and a user will be in charge of retaining content when it moves to a different thread.

Such a way of managing refCnt will simplify future adoption of Aeron (Aeron Buffers are releasing right after the execution, so if one need to move it to a different thread, the Buffer should be copied)

OlegDokuka avatar Apr 08 '20 21:04 OlegDokuka

i have a question! RSocketConnector buffer default ZeroCopyPayloadDecoder and it's not easy to configurate it!
All of it has been Final field&Class

ZouTrankil avatar Apr 21 '21 06:04 ZouTrankil

oop... spring-rsocket-message framecode,not here

ZouTrankil avatar Apr 27 '21 12:04 ZouTrankil