Controlling Message Causality

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 two Ajax requests to a server, two scenarios are possible:the server returns server response 1 followed by server response 2 or vice versa. Depending on the expected behavior of the Web application, different strategies to control the message causality can be used. We now present three Web applications that require three different strategies:

Using WeCa, which combines aspects and message ordering strategies, we develop these strategies.

Go WeCa home.