Use your own words to explain how the asynchronous web


Assignment: E-Portals Development

Question One

"A popular practice among Ajax developers is to batch/group multiple consecutive single calls into one large call for efficiency and effectiveness". Discuss this claim.

This practice is important to reduce the number of calls made to the server by combining multiple Ajax calls into one call to reduce costly network roundtrip. Browsers make at maximum two concurrent Ajax calls to a domain, because the browser will make first two calls and queue the remaining if there are more than two calls.The browser will wait other calls to complete, after then it will make another call until all queued calls are complete.

Question Two

In ASP.NET AJAX, list two reasons why we have to use HTTP GET calls instead of HTTP POST?

ASP.NET AJAX uses HTTP POST method for all web service calls that is expensive. Therefore, it uses HTTP GET to reduce costs.

In addition, the possibility of bookmarking considered as an advantage in HTTP GET that is not possible in HTTP POST method.

Question Three

On referring to figure 3.1 below, use your own words to explain how the asynchronous web method works.

957_How the asynchronous web method works.jpg
Figure 3.1. How the asynchronous web method works

1. There is a start "BeginXXX' and finish "EndXXX" web method where XXX represents the string with the name of the method we want to expose.

2. The function "BeginXXX" returns an IAsyncResult interface and takes an AsyncCallback and an object as its last two input parameters, in respective manner.

3. The function "EndXXX" takes an IAsyncResult interface as its lone parameter.

4. Both functions "BeginXXX" and "EndXXX" must be identified with the attribute "WebMethod".

Question Four

Running a large consumer web application for a mass audience is challenging task. The more users you have using your application, the more likely problems in application will arise. List two ways to Identify performance problems in web application.

We can identify performance problems by analyzing the patterns and determining how performance goes up and down during peak and nonpeaktimes. In addition, the log code has a role to narrow down difficulties and find the issue.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Use your own words to explain how the asynchronous web
Reference No:- TGS02718072

Now Priced at $30 (50% Discount)

Recommended (90%)

Rated (4.3/5)