Date: Wed Feb 15 13:00:14 2006
New Revision: 2386
- doc update
Wed Feb 15 13:00:14 2006
@@ -9,8 +9,6 @@
- <script src="/++skin++cpsskins/@@/++resource++ctal.js"
<link rel="stylesheet" type="text/css"
@@ -88,7 +86,35 @@
- <h1>CPSSkins: network latency</h1>
+ <h1>CPSSkins: controlling network latency</h1>
+ <p>Because they do asynchronous calls, AJAX applications often receive the
+ results of a series of requests in an order completely different from
+ the order in which the requests were originally made.</p>
+ <p>If the network or the server response latency is significant, or if the
+ user performs many actions in a short time, the results of these actions
+ user will be performed in an unpredictable sequence.
+ A solution is to specify access rules for the data storage:<p>
+ <dt>STACK SEQUENCE (LIFO)</dt>
+ <dd>The last request gets highest priority, it will be fulfilled before
+ the other requests (useful when typing).
+ <dt>QUEUE SEQUENCE (FIFO)</dt>
+ <dd>The first request is fulfilled before the other requests .</dd>
+ <p>In the example below, some data (1 .. 10) is written in a remote storage
+ in the following order: 1, 2, 3, ... 10. The results are displayed as soon
+ as the client gets a response from the server.</p>
+ <p>The storages that specify an access sequence are guaranteed to see the
+ being stored in the specifed order.</p>
<!-- models -->