• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Program approach

 
Mike Bates
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a program that off loads 4 different records from a serial device, that part works great.

I am wondering on an approach for updating a web page, email, twitter, ftp, GUI, etc. I thought of using the Observer model but not sure if that is the best approach.
Two of the records get updated every 2.5 seconds, 1 record gets updated every 5 minutes (could be every minute) and the forth record is updated about every 5 minutes plus or minus.

The each record is defined in their own class and updated as needed, I thought the best approach would be to notify other processes that the record was updated, have those processes grab the data and to their part.

Anyway, I am looking for options on approach.

Thanks
Mike
 
dennis deems
Ranch Hand
Posts: 808
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike Bates wrote:I thought the best approach would be to notify other processes that the record was updated, have those processes grab the data and to their part.


This is just what I would do.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic