SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Training
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Article Topics

All Articles
Performance Tuning
Audit
Business Intelligence
Clustering
Reporting Services
SQL Azure
Developer
General DBA
ASP.NET / ADO.NET
SQL Azure

USEFUL SITES :

ASP.NET Tutorials
Windows and SQL Azure Tutorials
Cloud Hosting Magazine
SharePoint Tutorials
Windows Server Help

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server

More     
 
Latest FAQ's

Add Node to A SQL Server failover Cluster failed with invalid ...
SQL Server Destination remote server error
Setting Up Data And Log Files For SQL Server
Will Check Constraints Improve Database Performance?

More     
   
Latest Software Reviews

dbForge Review
Spotlight on ApexSQL Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Data Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Doc 2008

More     

articles >> clustering >> Achieving Massive Scalability with SQL Server ...

Achieving Massive Scalability with SQL Server

By : Doug Kerwin
May 10, 2003

Page 2 / 2

Database Load Balancing

An emerging way to achieve massive database scalability is by real database clustering, literal load balancing of database servers. Load balancing web servers and application servers is easy and straightforward because there’s no data to persist. Incoming requests can be handled by any web server in a cluster because each server has identical executables on it. When clustered web servers need access to data, they funnel to a shared data source, usually a database. You can not use traditional load balancing for database servers, because the databases would get out of sync as soon as a write is made to one of them.

The mystery to load balancing persistable data sources lies in synchronization. Any update made to the database must be transactionally made across all databases in the cluster so that if a millisecond later a read request is made on the same rows which are affected by the write operation, each and every database server in the cluster will yield the exact same result, if queried. This kind of guaranteed synchronization can only be provided when load balancing is built into the database itself, as is done with Oracle’s 9i Real Application Cluster, or provided through a middleware transaction server, such as Database Scattering, a new product offered by my company, Metaverse.

To help demonstrate how load balancing can be a very powerful way to manufacture scalability, allow me to use Microsoft Access as an example. While Access is generally considered “not scalable”, referring mostly to its inability to handle large amounts of volume, most would consider Access to be suitable for many small to medium-sized applications. What people are really saying is that Access can’t scale up, which is true. Access wasn’t written to take advantage of multiple processors or extremely high amounts of memory, and it doesn’t have any automatic failover capability. But if you were to load balance access to it, those things become much less important. Scalability comes from each Access server in the cluster only processing a much smaller load of operations, which it is capable of, and backup and recovery exists on account of having multiple separate live copies of the data –- better than failover. While load balancing Access won’t clip any other thorns of the low end database (transactional ability, etc.), I think it demonstrates the power of load balancing and distributed processing to achieve massive scalability on software which was not designed to really be very scalable at all, no less massively scalable.

The basic idea behind load balancing databases is to read from any one database server in the cluster, and write to all databases in the cluster. You can write a simple database load balancer yourself by doing just that, given a set of database connection strings, randomly select one for read operations, and use them all for write operations.

Load balancing databases enables you to rely more heavily on the database for processing, as you don’t have to worry about one or two inefficient queries stealing all of the database’s CPU cycles. Front-end applications and processor intensive back-end services alike can have the same access to live data. Obviously load balancing databases favors read heavy applications, however most applications are just that, with at least 80% of all operations being reads. Database load balancing presents a new and powerful way to achieve massive database scalability.

 

About the Author

Douglas Kerwin is the founder and chief executive of Metaverse Corporation, an early adopter of Microsoft .NET technology. Doug has designed and patented Metaverse’s Database Scattering middleware, a Microsoft based transaction server capable of load balancing database access to SQL Server. Doug can be reached at mailto:dkerwin@metaverse.cc


<< Prev Page         








C# Help and Tutorials | PHP MySQL Tutorial | Sharepoint Tutorial | Azure Tutorial | Cloud Hosting Magazine | ASP.NET Tutorials | Windows Server Help | Windows Phone Pro | Silverlight Ace | Visual Studio Tutorials | Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | SQL Server Training Videos | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 2010 Jude O'Kelly. All rights reserved