I need to implement a client/server application that works in this way:
1 - On server side I have some values, picked from the sensors on a machine. These values change randomly, they could also stay constant
2 - I have a publisher/subscriber mechanism that notifies me when one or more variable change
3 - I need a web page that connect to the server and shows data in real time, I guessed I can use React with socket-io.client
4 - What I don't know is how to implement the server side; I would like to use Webflux with WebSockets, but how can I bind a Flux to an unpredictable train of variable-changed events? As far as I know, Flux implements a continuous emission of data, for example the record from a database table, but how to deal with random events?
I hope the problem is clear, I would like a suggestion on how to structure the application.
You can't have everything. Where would you put it?
global solutions you can do in your home or backyard