RUI implementation using AJAX
The architecture of RUI using AJAX works as follows:
- The web browser uses HTTP to send request for a page to the server which responds to the request in a standard manner.
- At this stage, no mashup content is present when the page is first loaded by the browser. The browser downloads some JavaScript and the HTML for the page.
- The browser issues another request to the server for additional content which is responded by the server in an asynchronous manner.
- The server acts as a proxy and is responsible for forwarding requests coming in from the browser to the intended recipients.
- Amazon receives a SOAP request.
- Above diagram shows that the architecture proceeds in further steps, where amazon responds the request with appropriate data.
- A REST request is forwarded by the server to Yahoo, which returns the response in an XML format.
- The web server then performs all the mashing operations, combines the responses and then sends back to the browser in the standard format.