creativity in code.

creativity is that spark of electricity before an explosion.
it allows us, in a single instance to explore all possibilities without hesitation.

Programming - Replacing DB applications with high performance XML solutions on Websites


All modern website applications use database software as a persistent storage method, but this is both a waste of time and a waste of computer resources as the number of records and the requesting clients numbers do not require highly scalable transaction based databases.
People have also widely began using OO/R mapping software which maps business or POCO/POJO obects to relational databases. These frameworks are slow and usually provide features and services which are just never used in the standard web application.
So, to cut a long story short, small websites and eb applications just do not require high performance databases (in SQL).
So my solution is outlined below:
Use Serialization techniques to store persistence objects in an XML file. Then build a XMLDAL to organise and retrieve collections using either LINQ or mthods which sort collections into usable data.
Once collections are in memory, then the speed of the application is greatly increased which is extremely suitable for localhost web or desktop applications.
The most import part of the .NET framework which deals with this is:
XmlSerializer
ser = new
XmlSerializer(typeof(List<Content>));
And the Content class looks like:
public
classContent: PersistentObject
{
private
intid_;
public
stringTitle;
public
stringBody;
}
Using this simple example, you can build dynamic webpages and content and even implement a fully featured CMS based on this.
The full source code for this example can be found here.

Other pages of interest:
[+] Products
[+] Linux and Unix Software Development
[+] Rich internet application
[+] Java (J2EE) provides a scalable and robust framework for Enterprise application development Java ..
[+] .NET Enterprise provides a truly robust and scalable platform to build business applications on I..
[+] Mozilla is claiming the second release candidate of Firefox 3.0 is free of bugs and is now availab..
[+] Java (J2EE) provides a scalable and robust framework for Enterprise application development Java ..
[+] Enterprise-class information systems rely on the use of extended frameworks and advanced distribut..
[+] .NET Enterprise provides a truly robust and scalable platform to build business applications on I..
[+] .NET Enterprise provides a truly robust and scalable platform to build business applications on I..
[+] Microsoft releases SQL Server 2008 Release candidate
[+] WebLogic man goes full circle with SpringSource
[+] Forward thinking eCommerce is the next-generation dot com Forward thinking eCommerce is about pr..
[+] Java (J2EE) provides a scalable and robust framework for Enterprise application development Java ..
[+] Enterprise-class information systems rely on the use of extended frameworks and advanced distribut..


Comments(0)

add comment Add Comment

Add your comment

Email address:
Your name:
Do you want your email to be visible?: