• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Observer design pattern B&S

 
Jakub Drzazga
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I wondering if it's necessary to update other clients if one books some record. Would it be enough just updates client from time to time or when user press specified button?

Please share your opinion about this.
 
Justin Rundle
Ranch Hand
Posts: 123
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Difficult to share as this a design decision and only you know how your app is designed and how the server/client architecture works. My point is neither is right or wrong, what is important that your able to justify your decision.

More so you would have to ask yourself, "Is it absolutely crucial that ALL clients are updated when 1 client makes a change,"... how pratical is that, imagine the overheads if you have several clients using the system simultaneously... (just some food for thought)
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Partner, although it is a good idea, it is not required. Here's what I did: when working on networked mode, and a client updates a particular record, all records that are being displayed are refreshed with the latest values from the server.
 
Jakub Drzazga
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic