📜  JavaScript 中的 web-garden 和 web-farm 有什么区别?

📅  最后修改于: 2022-05-13 01:56:18.535000             🧑  作者: Mango

JavaScript 中的 web-garden 和 web-farm 有什么区别?

Web Garden:Web Garden是一个 Web 托管系统,其中可以配置应用程序池,同时还可以指定该池的工作进程数。 (应用程序池是工作进程的容器)因此,基本上使用网络花园,同时在单个网络服务器上托管多个进程。

网络农场:网络农场是一个网络托管系统,其中多个网络服务器可用于多个客户端。网络农场背后的主要思想是避免流量并允许所有客户端顺利使用资源。因此,基本上使用网络场,同时在多个 Web 服务器上托管单个 Web 应用程序以在它们之间分配负载。

网络花园和网络农场的区别:

Web GardenWeb Farm
It consists of multiple “processes”.It consists of multiple “computers”.
Web Garden consists of a single server on which any number of processes can be run.Web Farm has the ability to runs across multiple servers.
This provides logical scalability to web applications.This provides physical scalability to web applications.
Web Garden requires less amount of physical space.Web Farm helps to improve performance in some cases.
It needs aMachine.Configfile to group together multiple web servers.A Web Farm uses a load balancer to group together multiple web servers.
A Web Garden is achieved by enabling multiple worker processes for single application pool.But the Web Farm is achieved by using load balancer with virtual IP.
It provides better application availability compare to Web Farm.But Web Farm provides high availability compare to Web Garden.