Note: This topic applies to Web (HTTP/HTML), Mobile Application - HTTP/HTML, Flex, and Web Services Vuser scripts.
Asynchronous request and response sequences
Asynchronous communication is comprised of various request and response sequences. Such request and response sequences can be classified as one of three types of asynchronous communication: poll, push, and long-poll. When you develop a Vuser script, it is often useful to know the types of asynchronous communication that are implemented when the required business processes are performed.
The browser sends HTTP requests to the server at regular intervals, for example, every 5 seconds. The server responds with updates. This enables the system to intermittently update the application interface inside the browser. If the server has no update, it informs the application that there is no update, based on the application protocol.
The client opens a connection with the server by sending a single HTTP request to a known address on the server. The server then sends a response that appears to never end, so that the client never closes the connection. Whenever necessary, the server sends a “sub message” update to the client over the open connection. The server may or may not terminate this connection. During the time the connection is open, if the server has no real update to send, it sends "ping" messages to the client to prevent the client from closing the connection for timeout reasons.
Note: Push-type conversations are supported for Web - HTTP/HTML protocol actions inside Web - HTTP/HTML, Flex, Silverlight, and Web Services Vuser scripts, NOT for Flex_amf_call steps in Flex Vuser scripts.