design patterns - Observer or Pub/Sub for dashboard (Springboot) -


we have manufacturing plant , there single sql table regularly updated every resource's running job , status. want have clients subscribe changes (by dept) in web app. (we building new microservice architecture , other functions). dept supervisors want see "real-time" status of department's resources , jobs. total of 20-30 users

which pattern best: pub/sub or observable

publisher / subscriber each time status change publish message , subcriber update information ,you can filter out message based on department , decide whether update infor or not.

observable notify linked members only.

suggested way go pub/sub

any new addition or deletion of services easy.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -