• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Reactive application scenario overview - Implementation suggestions  RSS feed

 
Greenhorn
Posts: 28
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
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.

Thank you
 
You can't have everything. Where would you put it?
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!