Ajax Timer postbacks and web server statistics

Last post 07-02-2009 11:12 PM by chetan.sarode. 1 replies.

Sort Posts:

  • Ajax Timer postbacks and web server statistics

    07-02-2009, 6:45 AM
    • Member
      26 point Member
    • jjmonty
    • Member since 08-05-2007, 12:44 AM
    • Posts 98

    I inherited a page that uses the ajax timer to update some world clocks on a banner in a masterpage. It was very inefficient since it was updating every minute by posting back and reliving the page lifecycle...I resolved this with an asynchronous client-side call to a web service so that the entire page was not being run just to update these clocks every minute and viewstate load wasn't being shuttled back and forth. I reduced the load from 7k to about 40 bytes.

    I learned how to do this with the client-side ajax library with this great article, fyi:

    http://msdn.microsoft.com/en-us/magazine/cc163499.aspx

    Anyway, my question is about how web server statistics software on the server would have recorded the page in the inefficient setup using the ajax timer which posted back to the page and registered a 200 everytime per Fiddler. It seems the unique visitor and page view numbers would be vastly out-of-whack. Wouldn't this artificially inflate the page views of the page if it seems someone is refreashing it every minute? Does IIS somehow prevent these kinds of user distortions?

    Now the page makes a call to a web service every minute which is an application call not a page. How will this be recorded in web statistics?

     

  • Re: Ajax Timer postbacks and web server statistics

    07-02-2009, 11:12 PM
    Answer
    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
Page 1 of 1 (2 items)