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.

Home | Privacy Policy | Site Map | Links | Company | Contact Us | Arena           

We provide cutting edge software development, consultancy and web design services            

There are currently 777 user(s) with 34492 hits.