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.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database