Project Reactor Sink replacement for ApplicationEvent (when not needed transaction)? #1020
Unanswered
kalwinskidawid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I am interested in the modulith solution, but I can't find a suitable solution. I know that this solution is quite young, so that I can not find many examples.
Let's say I have a
Device
module that contains create, modify operations, but also the module is responsible for creating a websocket connection to a physical device.I first created
DeviceState
in the same module, but the module became huge, so I separatedDeviceState
intoStateManagement
module, which is responsible for storing the historical state and returning the latest state.How should I send the state received in the
Device
module to theDeviceState
module? I don't needtransaction
in onMessage (ws handler) so I can't useApplicationEvent.publish
.A good replacement would be
Reactor Sink
, which is just a simple asynchronous message broker. I have used it before in another project and create events / subscribing worked very smoothly - no transaction creation is required.Beta Was this translation helpful? Give feedback.
All reactions