Kbase P62532: How to achieve a full synchronization between clients and th
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/01/2004 |
|
Status: Unverified
GOAL:
How to notify a client that the record he is displaying is changed
GOAL:
Synchronization between clients and the database
GOAL:
One clients updates record that is being viewed by another one. How do refresh the record in this second one?
FIX:
There could be two way to achieve this.
1) Very easy approach. Refresh in the interested client the information every X second. In this way you are sure that you don't have ever a record that is more than X second old.
Advantage: Very easy to implement.
Drawback: you generate additional network workload.
2) Tough approach but this is the way this should be achieved. You should think about a mechanism that connected to the DB check periodically if new information are available. If so he send via socket a communication to the client that when received this refresh the information
Advantage: No additional network workload. The as-should-be solution
Drawback: Needs advanced knowledge of socket programming and several hours of developing.