otm:ordering_of_messages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
otm:ordering_of_messages [2011/06/27 04:52]
aspectscript
otm:ordering_of_messages [2011/06/27 06:19] (current)
aspectscript
Line 1: Line 1:
 ====== Controlling Message Causality ====== ====== Controlling Message Causality ======
  
-{{ :otm:webordering.png?352x253 Ajax requests }}+{{ :otm:ajax.png?533x270 |}}
  
 A Web application can send several Ajax requests to different servers. However, the application can retrieve and process the server responses in an arbitrary order; meaning that this application may behave nondeterministically due to the lack of control of the causality between Ajax requests and server responses. For example, the figure shows that if a WebApp sends A Web application can send several Ajax requests to different servers. However, the application can retrieve and process the server responses in an arbitrary order; meaning that this application may behave nondeterministically due to the lack of control of the causality between Ajax requests and server responses. For example, the figure shows that if a WebApp sends
Line 8: Line 8:
  
  
-  * [[otm/ordering_of_messages/Fifo|FIFO]].FIFO strategy processes the server responses in the same order as the Ajax requests are sent. This example illustrates how to define and use the fifo strategy to create and show correctly a Web page. +  * [[otm/ordering_of_messages/Fifo|FIFO]]. The FIFO strategy processes the server responses in the same order as the Ajax requests are sent. This example illustrates how to define and use the fifo strategy to create and show correctly a Web page. 
  
   * [[otm/ordering_of_messages/Discard Late|Discard Late]]. The Discard Late strategy discards the late (and obsolete) server responses. This example illustrates how to define and use the discard late strategy to show correctly the flow of a streaming media.   * [[otm/ordering_of_messages/Discard Late|Discard Late]]. The Discard Late strategy discards the late (and obsolete) server responses. This example illustrates how to define and use the discard late strategy to show correctly the flow of a streaming media.
  
   * [[otm/ordering_of_messages/Discard Early|Discard Early]]. The Discard Early strategy discards early server responses. This example illustrates how to define and use the discard early strategy to show correctly the first posts of a thread in a forum.   * [[otm/ordering_of_messages/Discard Early|Discard Early]]. The Discard Early strategy discards early server responses. This example illustrates how to define and use the discard early strategy to show correctly the first posts of a thread in a forum.
 +
 +Using WeCa, which combines [[en.wikipedia.org/wiki/Aspect-oriented_programming|aspects]] and [[http://en.wikipedia.org/wiki/Vector_clock|message ordering strategies]], we develop these strategies.
  
 Go [[../weca|WeCa home]]. Go [[../weca|WeCa home]].
  • otm/ordering_of_messages.1309161178.txt.gz
  • Last modified: 2011/06/27 04:52
  • by aspectscript