What is the difference between Web Farm and Web Garden?
https://www.codeproject.com/Articles/114910/What-is-the-difference-between-Web-Farm-and-Web-Ga
Clients request for resources and IIS process the request and send back to clients. If you want to know more details on How IIS Processes the request, please read one of my articles about “How IIS Process ASP.NET Request?”.
Web Farm
This is the case where you have only one web server and multiple clients requesting for resources from the same server.
But when are is huge amount of incoming traffic for your web sites, one standalone server is not sufficient to process the request.
You may need to use multiple servers to host the application and divide the traffic among them.
This is called “Web Farm”. So when you are hosting your single web site on multiple web servers over load balancer is called “Web Farm”.
The below diagram shows the overall representation of Web Farms.
In general web farm architecture, a single application is hosted on multiple IIS Server and those are connected with the VIP (Virtual IP) with Load Balancer.
Load Balancer IPs are exposed to external world to access.
So whenever some request will come to server from clients, it will first hit the Load Balancer, then based on the traffic on each server, LB distributes the request to the corresponding web server.
These web servers may share the same DB server or may be they can use a replicated server in the back end.
So, in a single statement, when we host a web application over multiple web servers to distribute the load among them, it is called Web Farm.
Web Garden
Now, let’s have a look at what is Web Garden? Both the terms sound the same, but they are totally different from each other.
Before starting with Web Garden, I hope you have a fundamental idea of what an Application Pool is and what a Worker Process is.
If you have already read the article, “How IIS Processes ASP.NET Request ?”, then I can expect that you now have a good idea about both of them.
Just to recall, when we are talking about requesting processing within IIS, Worker Process (w3wp.exe) takes care of all of these.
Worker Process runs the ASP.NET application in IIS.
All the ASP.NET functionality inside IIS runs under the scope of worker process.
Worker Process is responsible for handling all kinds of request, response, session data, cache data.
Application Pool is the container of worker process.
Application pool is used to separate sets of IIS worker processes and enables a better security, reliability, and availability for any web application.
Now, by default, each and every Application pool contains a single worker process.
Application which contains the multiple worker process is called “Web Garden”.
Below is the typical diagram for a web garden application.
In the above diagram, you can see one of the applications containing the multiple worker processes, which is now a web garden.
So, a Web application hosted on multiple servers and access based on the load on servers is called Web Farms and when a single application pool contains multiple Worker processes, it is called a web garden.
https://stackoverflow.com/questions/2151251/asp-net-web-garden-how-many-worker-processes-do-i-need
https://stackoverflow.com/questions/2147578/asp-net-session-state-and-multiple-worker-processes
I have flowers... should I get a Web Garden?
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2016-11-01 DevExpress Crack
2016-11-01 GitHub如何在自己的Stars中进行搜索