Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 5514 |  Welcome, Guest!   Register  Login
Home > Articles > ASP.NET > Difference Between Web Farm and Web Garden

Difference Between Web Farm and Web Garden

4 vote(s)
Rating: 4.25 out of 5
Article posted by Abhijit Jana on 11/23/2009 | Views: 59011 | Category: ASP.NET | Level: Beginner red flag


This article describe basic overview of WebFarm and WebGarden for ASP.NET Site Deployment on IIS

Introduction

Web Farms and Web Garden are very common terminology for any production deployment. Though these terms looks same but the things are totally different. Many beginners very confused with these two terms. Here I am giving the basic difference between the Web Farm and Web Garden.

Web Farm

After developing our asp.net web application we host it on IIS Server.  Now one standalone server is sufficient to process ASP.NET Request and response for a small web sites but when the site comes for big organization where there an millions of daily user hits then we need to host the sites on multiple Server. This is called web farms. Where single site hosted on multiple IIS Server and they are  running behind the Load Balancer.

Fig : General Web Farm Architecture

This is the most common scenarios for any web based production environment. Where Client will hit an Virtual IP ( vIP) . Which is the IP address of Load Balancer. When Load balancer received the request based on the server load it will redirect the request to particular Server.

Web Garden

All IIS Request process by worker process ( w3wp.exe). By default each and every application pool contain single worker process. But An application pool with multiple worker process is called Web Garden.   Many worker processes with same Application Pool can sometimes provide better throughput performance and application response time. And Each Worker Process Should have there own Thread and Own Memory space.

There are some Certain Restriction to use Web Garden with your web application. If we use Session Mode to "in proc", our application will not work correctly because session will be handled by different Worker Process. For Avoid this Type of problem we should have to use Session Mode "out proc" and we can use "Session State Server" or "SQL-Server Session State".

How To Configure Web Garden?

Right Click on Application Pool > Properties > GoTo Performance Tab
In bottom Group Section  Increase the Worker Process Count.

Further Study

1. http://www.codeproject.com/KB/aspnet/ExploringIIS.aspx

If you like this article, subscribe to our RSS Feed. You can also subscribe via email to our Interview Questions, Codes and Forums section.

Page copy protected against web site content infringement by Copyscape
Found interesting? Add this to:



Please Sign In to vote for this post.

About Abhijit Jana

Experience:3 year(s)
Home page:http://abhijitjana.net
Member since:Wednesday, December 24, 2008
Level:Bronze
Status: [Member] [MVP]
Biography:He has done Master Degree in Computer Application and currently working as a Sr. S/W Developer in a US based MNC and having more than 3 years exp. He has worked with all the .NET framework and good exposer in Web and Windows based development using Microsoft Technology . Currently he working with C# 3.5, ASP.NET 3.5, Enterprise Library 4.1 and SDL Tridion also Exploring VS 2010 with .NET 4.0.
 Responses
Posted by: Raja | Posted on: 24 Nov 2009 08:12:21 PM

Short but very unique and informative. Thank you very much Abhijit.

Keep writing !

>> Write Response - Respond to this post and get points
Related Posts

This is my second article in MVC. In my previous article we had discussed how we can develop MVC application in ASP.NET using HttpHandler. In case you have missed the first part I have given the link below. I am sure Httphandler is a tough way to implement MVC, but if you have understood the concept then you have understood the basics of implementing MVC. Ok, now good news in VS 2008 we have a something readymade given by Microsoft ASP.NET community the ASP.NET MVC. In this section we will discuss step by step how we can use the ASP.NET MVC to build the three Musketeer’s Model, View and Controller. It’s a clean approach and easy to build upon as it encapsulates the HttpHandler implementation for MVC, thus bringing in simplicity.

There is no more difference in windows and web listbox it is so simple to implement in web.

This article shows how to work with ASP.NET Chart cotrol and describe how to create 2D and 3D Column chart and Line chart.

Quick and dirty 3-Tier Architecture in ASP.NET with C#/VB.NET. Using UI BLL and DAL

In this article, I shall show how to beign the file upload process without user explicitely clicking the Upload button.

More ...
About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 4:27:49 AM