Results 1 to 6 of 6

Thread: Load Balancing and DAL

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Arrow Load Balancing and DAL

    I have no experience with multiple servers that handles database access, is this a hardware setup or is there something that should be put in a DAL to allow it to be horizontally scalable (scaled out)?

    Pls. be gentle with on this one.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Re: Load Balancing and DAL

    it can be either or.

    I own a web hosting company where we have multiple racked servers linked together. Hardware is the best bet, as the chances of it "not responding" are...never. Plus, it doesnt take resources on the servers.

    Software can be used. Basically have it monitor server 1. If server 1's load is higher than 4, then start moving files / requests / gets to server 2. Keep doing so until Server 1's load = Server 2's load. Then have it wait till server 1's load is 4.5..then do it until server 2's load is 4.5....(just an example)

    Cant explain how to do it, but if you were decent in coding, it can be done.

  3. #3
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Load Balancing and DAL

    You shouldn't have logic in your DAL for load balancing as Carter says. What you need is server hardware to do it. Basically you give your database server one address and the load balancer can scale and use any database under that address. Web server would work the same (so you really don't need to do anything on your end; your infrastructure people would, however).
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  4. #4

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Load Balancing and DAL

    Quote Originally Posted by kasracer
    You shouldn't have logic in your DAL for load balancing as Carter says.
    Hmmmnn... Discussed here are some principles that I need to follow so my application would be scalable horizontally. Did I get the message wrong?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Load Balancing and DAL

    Distributed programming allows you to spread your execution across multiple machines (think folding@home, SETI or render farms). Load balancing allows you to have multiple servers setup to pass users back and forth if one's load becomes too high.

    In a load balancing setup users will be passed to different servers depending on which server has the lowest load.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Load Balancing and DAL

    You shouldn't need to cater to this in code.

    As an example, you can have 4 web servers and 2 database servers. Set up a replication between the two database servers. Have 2 web servers pointing at DBServer1, and the other 2 web servers pointing at DBServer2.

    Have an arrowpoint that handles any incoming web server request and sends it to any one of the 4 web servers.

    That's called load balancing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width