in

dotnet.org.za

South African .NET Developer Portal

Adam Heunis tech talk

Software mostly, but other techie stuff as well. I primarily use Notepad, Visual Studio, the Command Prompt, XmlSpy, SQL Server, MySQL and Photoshop. I speak
C# (incl. OO), XML, XSL, ASP.NET, VB.NET, VB6, SQL, UML and XForms.

Why AJAX? The benefits of AJAX explained.

While reading the comments on Armand's AJAX Wrapper DLL post, I got the impression that readers weren't quite sure about the benefits of AJAX.

AJAX has two huge benefits:

  1. Speed and invisibility (ala smart client) makes for a very slick user experience.
  2. The smaller server resources footprint helps server scalability (seriously!).

I'll explain. If you post using AJAX, only the data (or parameters) that the server function requires is posted. In a login scenario, only the username and password strings (100 bytes maybe) are sent to the server and only a boolean value (1 byte) is returned. This means that only 101 bytes (excluding network handshaking traffic) is sent & received. For this same functionality using ASP.NET all the state data is pushed and the whole page is returned. In a conservative case, when a page might be 20k, you will literally produce 99.5% less traffic when using AJAX.

Further more; when using AJAX your web server and or db server (or whatever your config is) does not have to do any processing other than running the called function and returning the return value. No page load events, no xsl transform etc. This can have a huge impact in an enterprise environment. Case in point: While working on a huge financial services CRM package, we were able to improve usage from 150 users/minute to 250 users/minute with an AJAX implementation.

The one thing that you do have to be careful about is security. Without proper security, you're left wide open (much more than with ASP.NET). Currently there is no security in the .NET wrapper Armand mentions. But in a response to one of my comments, Michael Schwarz indicated that this is something on his roadmap.

Oh yes and AJAX is absolutely disconnected. In the same way as a normal web page or a smart client, AJAX has no idea of state.

My final thought: Using AJAX you can have the flexibilty of a browser, but the slickness and reduced network traffic of a smart client. Highly recommended.

My final final thought: Be sure to let Michael Schwarz know that you would love to see his very useful AJAX .NET Wrapper as an open source project.

Comments

 

Ulf said:

Hi Adam, this is exact what the new AJAX Wrapper is!!! A very nice tool for rapid application development. What is Michael saying about security? Will there be a NTLM security?
April 12, 2005 8:57 PM
 

Adam Heunis said:

He'll be adding security at some point. I wouldn't except anything in the immediate future though - he's got enough to keep himself busy with. I won't use the software until its open source. Don't be shy to remind him to make it open source!!
April 12, 2005 9:03 PM
 

Senkwe said:

Adam, thanks for following up on my comment, but it seems we're thinking of two slightly different meanings of "disconnected". Maybe I'll elaborate further about what I meant in a blog entry. Cheers.
April 13, 2005 6:51 AM
 

TrackBack said:

July 19, 2005 9:12 AM
 

xanax said:

July 23, 2006 2:57 PM
 

xanax said:

July 23, 2006 4:03 PM
 

viagra said:

July 23, 2006 9:00 PM
 

cialis said:

July 24, 2006 3:04 AM
 

xanax said:

July 24, 2006 2:57 PM
 

xanax said:

July 24, 2006 3:47 PM
 

viagra said:

July 24, 2006 9:00 PM
 

xanax said:

July 25, 2006 2:57 PM
 

xanax said:

July 25, 2006 3:56 PM
 

hilary said:

Just an update to my previous post : I found an interesting article by Jason Kottke musing about Google’s plans for web-desktop apps in the future: http://www.kottke.org/05/08/googleos-webos

August 10, 2006 1:30 AM
 

yaho said:

ya all r great

November 10, 2006 1:35 PM
 

IKQ said:

previous post : I found an interesting article by Jason Kottke musing about Google’s plans for web-desktop apps

http://preview-mature.loperzx.info

http://figa-giovane.loperzz.info

http://culi-di-donne-aperti.loperzb.info

http://video-amatoriale-di-coppie-gratis.loperzc.info

http://militari-nudi.loperzm.info

http://videoclip-amatoriali-grati.loperzx.info

http://piede-in-faccia-gratis.loperzz.info

previous post : I found an interesting article by Jason Kottke musing about Google’s plans for web-desktop apps

December 16, 2006 3:12 AM
 

Robert said:

January 8, 2007 3:49 AM
 

Deon Heunis said:

We recently launched our online support site. I implemented AJAX in a big way. The speed of the site is by far superior to anything I have ever developed. And, I'm producing +- 500% less traffic. The average page request is a mere 8 kb :) Now in South Africa, were bandwidth is a BIG ISSUE due to the high cost, AJAX is a revelation (for me).

January 19, 2007 10:56 AM
 

faust002 said:

April 10, 2007 9:23 PM
 

Kleanthe said:

Cool}Cool!

April 17, 2007 4:11 PM
 

Giannis said:

Cool}Cool!

April 17, 2007 4:59 PM
 

Vasilios said:

Cool}Cool!

April 20, 2007 11:47 PM
 

Panicos said:

Interesting...

April 28, 2007 7:13 PM
 

Alexander said:

interesting

April 29, 2007 6:38 PM
 

Sophocles said:

Interesting...

May 2, 2007 1:51 AM
 

flomax said:

good site http://xvnp.com/flomax.html of flomax information

July 7, 2007 9:35 AM
 

Senthilkumar said:

please explain in detail about AJAX....

How to use

Advantages

when to use

when not to use

etc...

mail to ..

senthilmailbox@gmail.com

September 21, 2007 10:19 PM
 

Thomas Gant said:

Good Work!

January 6, 2008 7:33 PM
 

extenze said:

Great work!

Best regards.

May 17, 2008 9:01 PM
 

vivaxa review said:

Vivaxa review

May 25, 2008 3:07 PM
 

Hemant said:

Hi Ecerybody.

I am new to this web world and I got to know so many things about AJAX from this article.

But need more explanation. I am implementing a web application using ASP.NET , I am using ASP.NET Controls and I have a proble. The problem every time I select any thing in dropdown controls the whole page gets repainted (as these controls auto postback property is true) and this is producing a flickering effect.

So is it possible to eliminate this flickering (Repainting of pages )  using AJAX. If so please let me know.

Thanks in advance.

Hemant bk

June 27, 2008 8:08 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Powered by Community Server (Commercial Edition), by Telligent Systems