spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column24


Persistence's Benefits

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

Internet Explorer 5.0's persistence is much superior to what people currently use instead: cookies and server-side database. Persistence's advantage over cookies is in its ease of use. Writing a cookies-based Web application is not a trivial task, and requires an intimate knowledge of the cookies format. Persistence, on the other hand, is easy to implement in a Web page. Some persistence modes require very little programming, while cookies require a great deal. The other reason to prefer persistence over cookies is that the server is not involved at all in the persistence transaction. When using cookies, though, the server does need to read and write the cookies, resulting in increased download time for the client and increased processing demands on the server.

Same reasoning goes for preferring persistence over a server-side database. Storing client-specific information in a database requires a careful planning of the database, formatting the data in a database query language, writing the proper processing scripts, and constantly checking the database integrity. A server-side database is a burden on the server. It has to move information to and from the server-side database and send the information to the client for display. The bottom line is as with using cookies: longer download time and higher load on the server. The latter is a serious issue for the scalability of an application. Imagine a small startup developing a Web-based application, heading for a larger customer base. If the server processing load is severely affected, the enterprise needs to consider an upgrade of the server to handle this excess processing demands. Handling persistence by the client goes a long way in deferring such expenses.

Specifically, we can identify three basic types of applications where persistence is useful: start pages, Web applications, and forms. Start pages include customized information that is currently being stored in cookies and server-side databases. DHTML Behaviors-based persistence allows a page author to store the client-specific information on the client. It reduces the load time of the start pages which contributes a lot towards leaving an impression of a high performance site. Another benefit of persistence is that it stores the data hierarchically, making it faster accessible than in a flat database.

Web applications usually rely on scripts that process the page data, after it has been saved to disk. Before persistence has been introduced by Internet Explorer 5.0, the server was responsible for both saving the data on the server, as well as running scripts on it. Persistence, on the other hand, can save a Web page on the client, and then use the client's processing power to massage the data. Persistence introduces a new paradigm for Web application development, enabling the production of a complex client-based application.

Forms are probably one of the most popular methods to communicate with the user. Without persistence, page authors either did not bother persisting form entries across sessions, or they used session variables and "freeze files." In the former, the user got irritated by having to enter the same information over and over again, developing a perception of a poorly performing application. In the latter case, the server had to send and store the same information with each new visit to the Web page, overloading the server and the communication lines. Persistence saves the form information on the client for future sessions. The processing time is shortened and the user develops a perception of a high-performance application.

http://www.internet.com

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Microsoft PDF: Top 10 Reasons to Move to Server Virtualization with Hyper-V
Microsoft PDF: Six Reasons Why Microsoft's Hyper-V Will Overtake Vmware
Microsoft Step-by-Step Guide: Hyper-V and Failover Clustering
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Microsoft PDF: Top 11 Reasons to Upgrade to Windows Server 2008
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
  PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
HP eBook: Guide to Storage Networking
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Crucial Triples Up With New Three-Channel DDR3 Kits · Meet the Finalists: Excellence in Technology Awards · Tealeaf Offers Insight to Mobile Customer Behavior


Created: August 28, 1998
Revised: August 28, 1998

URL: http://www.webreference.com/js/column24/benefits.html