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
Uh oh!
There was an error while loading. Please reload this page.
-
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
Devicemodule that contains create, modify operations, but also the module is responsible for creating a websocket connection to a physical device.I first created
DeviceStatein the same module, but the module became huge, so I separatedDeviceStateintoStateManagementmodule, which is responsible for storing the historical state and returning the latest state.How should I send the state received in the
Devicemodule to theDeviceStatemodule? I don't needtransactionin 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