如何在创建Web应用程序时连接两台服务器? [英] How to connect two servers while creating a web application?

查看:71
本文介绍了如何在创建Web应用程序时连接两台服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是Web应用程序制作的新手。我想知道当人们说他们在构建他们的Web应用程序后运行4台服务器时究竟是什么意思?

我想知道这一点,因为根据我自己的理解,为什么你会增加硬盘大小和服务器,当你不是托管公司?请,我需要知道

Hello, i'm a newbie when it comes to web application production. I want to know what exactly is the meaning when people do say they run 4 servers after building their web application?
I want to know this because in my own understanding, why will you be increasing hard disk size and server when you are not the hosting company? Please, i need to know

推荐答案

如果您的应用程序有大量的传入流量,则一台服务器不足以处理它们。 Somay需要许多服务器来托管您的应用程序并在它们之间共享流量。这称为Web Farm
If there is a huge amount of incoming traffic for your application, one server is not sufficient to process them. Somay need many servers to host you application and share the traffic among them. This is called what called a Web Farm


它不是用于增加硬盘大小,而是用于提高性能。这意味着他们有4个服务器都运行相同的网站副本,并且有一个负载均衡器,而不是在所有四个服务器上分配传入请求,因此每个IIS只需要服务四分之一的服务器,而不是一个IIS服务每个请求。提高处理器速度,内存大小等只会获得如此多的性能(这称为扩展),当您需要更高的性能时,您将不得不开始使用多个服务器(这称为缩小)。由于您需要额外的硬件和许可成本,这显然更加昂贵。
It's not for increasing hard disc size, it is for performance. It means they have 4 servers that all run identical copies of their website, and there is a load balancer than distributes incoming requests across all four servers, so rather than one IIS servicing every request, each IIS only needs to service a quarter of them. Improving processor speed, memory size etc is only going to gain you so much performance (this is called "scaling up"), and when you need even more performance then you're going to have to start using multiple servers (this is called "scaling out"). It's obviously more expensive as you need the extra hardware and licensing costs.


这篇关于如何在创建Web应用程序时连接两台服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆