PC Review


Reply
Thread Tools Rate Thread

[AJAX ASP.NET]Performance

 
 
Oriane
Guest
Posts: n/a
 
      16th Jan 2008
Hi,

I ask myself: if an AJAX aspx page doesn't need anything on the IIS server
and only uses Web services from inside the Javascript to fetch data, is it
necessary to keep a connection/session with IIS ? I guess not !

In that case, how can we "delete" the session with that client in IIS ? I
don't know much in that domain, but I guess that keeping HTTP connections
alive with clients must be resource consuming. So AJAX could save the server
resources.

Oriane


 
Reply With Quote
 
 
 
 
David Wang
Guest
Posts: n/a
 
      16th Jan 2008
On Jan 16, 1:50*am, "Oriane" <ori...@noemail.noemail> wrote:
> Hi,
>
> I ask myself: if an AJAX aspx page doesn't need anything on the IIS server
> and only uses Web services from inside the Javascript to fetch data, is it
> necessary to keep a connection/session with IIS ? I guess not !
>
> In that case, how can we "delete" the session with that client in IIS ? I
> don't know much in that domain, but I guess that keeping HTTP connections
> alive with clients must be resource consuming. So AJAX could save the server
> resources.
>
> Oriane




Please be more precise. Can you clarify the "connection/session with
IIS" that you are talking about?

IIS and HTTP has no concept of sessions, so if you are asking about
how to "delete" a session, you should ask that in a forum dedicated to
the particular implementation of AJAX on ASP.Net.

Web Services are just SOAP calls made over HTTP to a web server. You
say that AJAX needs to fetch data from it, so contrary to your first
sentence, it would seem that AJAX aspx page *does* need stuff on the
IIS. Please clarify what you are asking to yourself.

Can you identify or measure the "connection/session with IIS" that is
unnecessarily kept open and should be "deleted".

FYI: HTTP is stateless. Keeping a connection alive is called "HTTP
KeepAlive" and is mutually negotiated between a client and server.
Thus, just because a server and client are conducting request/response
over HTTP, it does not mean that there are connections being kept open
unnecessarily.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
 
Reply With Quote
 
PhilTheGap
Guest
Posts: n/a
 
      16th Jan 2008
Hi David,

"David Wang" <(E-Mail Removed)> a écrit dans le message de
news:ec14656b-54c8-4c58-97ae-(E-Mail Removed)...
On Jan 16, 1:50 am, "Oriane" <ori...@noemail.noemail> wrote:

>Please be more precise. Can you clarify the "connection/session with
>IIS" that you are talking about?


>IIS and HTTP has no concept of sessions, so if you are asking about
>how to "delete" a session, you should ask that in a forum dedicated to
>the particular implementation of AJAX on ASP.Net.


> Web Services are just SOAP calls made over HTTP to a web server. You
> say that AJAX needs to fetch data from it, so contrary to your first
> sentence, it would seem that AJAX aspx page *does* need stuff on the
> IIS. Please clarify what you are asking to yourself.

The Web Service is not necessarily on the same server, so why do we need IIS
anymore ?


>Can you identify or measure the "connection/session with IIS" that is
>unnecessarily kept open and should be "deleted".


>FYI: HTTP is stateless. Keeping a connection alive is called "HTTP
>KeepAlive" and is mutually negotiated between a client and server.
>Thus, just because a server and client are conducting request/response
>over HTTP, it does not mean that there are connections being kept open
>unnecessarily.


Ok my point is: how to delete unuseful resources on the server machine and
avoid to send unuseful data on the network. As you can see, I'm quite a
newbie in this domain... However, there is a notion of "connection" in IIS.
For instance, you can't have more that N (4 I think) simultaneous
connections on a IIS 5.0, you can ask to your IIS Server the number of
connections it is dealing with. So, the IIS should use memory to deal with
this connections... My understanding is that IIS can remember what
connection is still alive (with cookies or URI), so must consume resource
for this.

Now concerning the "HTTP Keep alive", I can imagine that data are sent
periodically on the network, then consuming bandwith. But I don't know at
what level

As this could be completely unuseful with AJAX, I wonder how we could manage
that in order to save resources and bandwith.

Thanks for your answer.


 
Reply With Quote
 
Peter Bromberg [C# MVP]
Guest
Posts: n/a
 
      16th Jan 2008
I think you may be harborin some misconceptions here. Using AJAX with an
ASP.NET application still requires all the IIS infrastructure. I think you
are overly concerned with resource usage. IIS is already very efficient. Just
focus on getting your application to work well.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"PhilTheGap" wrote:

> Hi David,
>
> "David Wang" <(E-Mail Removed)> a écrit dans le message de
> news:ec14656b-54c8-4c58-97ae-(E-Mail Removed)...
> On Jan 16, 1:50 am, "Oriane" <ori...@noemail.noemail> wrote:
>
> >Please be more precise. Can you clarify the "connection/session with
> >IIS" that you are talking about?

>
> >IIS and HTTP has no concept of sessions, so if you are asking about
> >how to "delete" a session, you should ask that in a forum dedicated to
> >the particular implementation of AJAX on ASP.Net.

>
> > Web Services are just SOAP calls made over HTTP to a web server. You
> > say that AJAX needs to fetch data from it, so contrary to your first
> > sentence, it would seem that AJAX aspx page *does* need stuff on the
> > IIS. Please clarify what you are asking to yourself.

> The Web Service is not necessarily on the same server, so why do we need IIS
> anymore ?
>
>
> >Can you identify or measure the "connection/session with IIS" that is
> >unnecessarily kept open and should be "deleted".

>
> >FYI: HTTP is stateless. Keeping a connection alive is called "HTTP
> >KeepAlive" and is mutually negotiated between a client and server.
> >Thus, just because a server and client are conducting request/response
> >over HTTP, it does not mean that there are connections being kept open
> >unnecessarily.

>
> Ok my point is: how to delete unuseful resources on the server machine and
> avoid to send unuseful data on the network. As you can see, I'm quite a
> newbie in this domain... However, there is a notion of "connection" in IIS.
> For instance, you can't have more that N (4 I think) simultaneous
> connections on a IIS 5.0, you can ask to your IIS Server the number of
> connections it is dealing with. So, the IIS should use memory to deal with
> this connections... My understanding is that IIS can remember what
> connection is still alive (with cookies or URI), so must consume resource
> for this.
>
> Now concerning the "HTTP Keep alive", I can imagine that data are sent
> periodically on the network, then consuming bandwith. But I don't know at
> what level
>
> As this could be completely unuseful with AJAX, I wonder how we could manage
> that in order to save resources and bandwith.
>
> Thanks for your answer.
>
>
>

 
Reply With Quote
 
PhilTheGap
Guest
Posts: n/a
 
      16th Jan 2008
Hi Peter,
"Peter Bromberg [C# MVP]" <(E-Mail Removed)> a écrit dans le
message de news:001B31BB-72CF-4F9B-9277-(E-Mail Removed)...
>I think you may be harborin some misconceptions here. Using AJAX with an
> ASP.NET application still requires all the IIS infrastructure. I think you
> are overly concerned with resource usage. IIS is already very efficient.
> Just
> focus on getting your application to work well.

Yes I think you are right. However, as Dino Esposito states in his article
from MSDN Magazine (Cutting Edge: AJAX Application Architecture, Part 1),
"The ability to take AJAX applications offline is a challenge for many
software vendors"...

 
Reply With Quote
 
Hans Kesting
Guest
Posts: n/a
 
      16th Jan 2008
>
> Now concerning the "HTTP Keep alive", I can imagine that data are sent
> periodically on the network, then consuming bandwith. But I don't know at
> what level
>


When the browser loads a page, it usually requires several requests to
the webserver: the first one retrieves an HTML document that might
reference images, javascript files, css files and so on. Those are
fetched by the browser in separate requests. The "keep-alive" means
that no new negotiation is needed to start those new requests.

I would guess that as soon as the last resource is retrieved, that
connection is closed. In any case I doubt it would last the entire
session!


Hans Kesting


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Performance issue with Ajax update panel Neeraj Microsoft ASP .NET 0 11th Apr 2011 11:42 AM
performance issue on an asp.net page using ajax.net toolkit Abubakar Microsoft ASP .NET 0 31st Aug 2008 04:14 PM
ASP.NET AJAX samples... I am looking for help with HoverMenu AJAX Toolbox control. JDeats Microsoft ASP .NET 1 5th Oct 2007 08:50 PM
ASP.NET AJAX Enabled Website Web.config error (newbie to AJAX) Tony K Microsoft ASP .NET 2 4th May 2007 05:23 AM
Deploying ASP.NET AJAX-Enabled Web site to host without AJAX insta =?Utf-8?B?QnJpYW4gRWR3YXJkcw==?= Microsoft ASP .NET 2 21st Feb 2007 10:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:58 AM.