Why Ajax ?
I have an impression that most of managers aren't quite sure about the benefits of AJAX. As an IT consultant, I'm often asked about 'Web 2.0' or 'Ajax' technology. What is it from the technical point of view ?
AJAX has two huge benefits:
- Speed and invisibility (ala smart client) makes for a very slick user experience.
- 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.
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.
Here is an example of an Ajax website: Web Invoicing. SMS Gateway API
Our Last Five Customers
- WCB, Richmond
- Introduction to Linux
- Bash Beginners Guide
- Perl Programming Basics
- Shell Scripting
- Advanced Shell Scripting
- UNIX Sockets FAQ
- Mastering Regular Expressions
- UNIX Programming Examples
- C Programming (Marshall)
- Data Structures and Algorithms
- Art of UNIX Programming
- Advanced Linux Programming
- Linux Kernel Module Programming
- Linux for Mobile Devices
- Basic Unix Administration