lundi 13 avril 2015

Pattern for synchronizing server and client with high precision timing

Web App is a simulator. It is used to test students how quick (no longer than 5 seconds) and how correct they can react. Simulator has more than 100 states and 300 different switches and objects (such as engines, forcers, pistons, etc.). Users iteract with Simulator by changing the state of switches.



  • A server S generates some function of time F and sends it to a client C.

  • Behaviour of an object O depends on F.

  • The C renders O on the screen using F and passing time as an argument.


At some moment of time O will reach its critical state, when application starts waiting for user to react quickly and eliminate all critical states within some period of time.


The S can change multiple Fs if at least one switch was activated.




We are currently designing architecture for this webapp simulator. What is the best design pattern for communicating between server and client with high precision timing?





Aucun commentaire:

Enregistrer un commentaire