Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Load Balancing in ASP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Load Balancing in ASP

 Post Reply Post Reply
Author
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Topic: Load Balancing in ASP
    Posted: 03 November 2005 at 7:10am
I am going to develop an ASP application with IIS and MS SQL Server 2000. I have my own servers including web server, database server etc. My website is expecting 10,000 continuous active hits on web server for 4 hours. I want to discuss that how I can design the application so that the website may not be down at any time. Suggestions at ASP, IIS, and MS SQL Server level are required. Also if I should install any other server software?

Edited by PrivateEye - 03 November 2005 at 7:13am
The Judgement Day
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2005 at 9:37am
Easiest solution would be just to have a big really fancy server.  As for load balancing with ASP I'm not really sure how.  As long as your code is efficiently written and the server is good enough there shouldn't be any problems.  The things I think help with optimisation most in ASP are:

1)  Most important thing is to always remember to close connections and drop objects after use, otherwise they hang around in memory and the server can crash/slow down a lot.

2)  When looping through large sets of data, use rs.getRows.  Speeds up some pages by 5 seconds.  Good practise to use as much as you can

3) Debugger, make sure Option Explicit is on each page.  Also you would probably want the buffer set so that it processes the page before feeding anything out.

4)  ASP breaks (as in the <% and %>) slow down code a bit.

ASP optimisation has been written about extensivly, check google for more tips.
Back to Top
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2005 at 10:11am
Thanx and what about the Microsoft Transaction Server, is it a best practise to use under circumstances I mentioned above? I am studying its reference material on Microsoft website about building COM based objects. Am I going on right track?
The Judgement Day
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2005 at 7:30pm
Most load balancing is done through network "appliances" - hardware that communicates with an agent on the server that's monitoring performance. The network hardware then routes requests to the least busy server and monitors session state so all requests for that session go to the same server. Often you have to include additional session handling code though just in case the hardware screws up a session.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Posted: 04 November 2005 at 10:20am
ahan good, pls can anyone give me possible network diagram so that I can identify hardware which I may purchase.
The Judgement Day
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 04 November 2005 at 2:49pm
A simple solution would be 2+ Servers, installed with Windows Server 2003 Enterprise Edition and enable load balancing with failover. Then you essentially have a IIS Server Farm and you need to make sure how you code your asp trying to avoid session object because they may get lost when one user fails over to another server. If you use asp.net you can confiure a Session Server where session information is saved on a SQL Server or a dedicated Session Server Application thus I don't think you can do something like this with classic asp. There is plenty information on how to implement a solution like that on technet @microsoft.com
Back to Top
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2005 at 11:18am
I have done perfect in coding my classic ASP application, but I am worried about how to deploy it. What hardware and kind of server software should I buy?
The Judgement Day
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.