.net IIS 是 Web 服务器还是应用程序服务器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18497626/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 12:25:55  来源:igfitidea点击:

Is IIS a web server or an application server?

.netiiswebserverprotocolsapplication-server

提问by Gadam

Is IIS a web server or an application server?

IIS 是 Web 服务器还是应用程序服务器?

Or is it both?

还是两者兼而有之?

What is the difference between (or similarity between) Web and Application servers in .Net?

.Net 中的 Web 和应用程序服务器之间(或之间的相似性)有什么区别?

Thanks!

谢谢!

Update:On further investigation, concluded the following: It all depends on the protocolused for 'serving'

更新:在进一步调查中,得出以下结论:这完全取决于用于“服务”的协议

Web server: Only HTTP, and App server: any, including HTTP.

Web服务器:仅HTTP,应用服务器:任意,包括HTTP。

Not sure if IIS has other protocols that deviate much from HTTP, (and if it doesnt,) maybe in a stricter sense, is only a Web Server! (http://technet.microsoft.com/en-us/library/cc268242.aspx)

不确定 IIS 是否有其他与 HTTP 有很大差异的协议,(如果没有,)也许在更严格的意义上,它只是一个 Web 服务器!( http://technet.microsoft.com/en-us/library/cc268242.aspx)

Application servers, by definition, should be able to serve (any) 'application'; not just browsers. (web services being a problematic area in this context)

根据定义,应用服务器应该能够为(任何)“应用”提供服务;不仅仅是浏览器。(在这种情况下,Web 服务是一个有问题的领域)

Correct the above if wrong... thanks again.

如有错误请更正以上...再次感谢。

回答by Erik A. Brandstadmoen

IIS 6.0 is basically a web server, with an extension, aspnet_isapi.dll, which handles the ASP.NET functionality. in IIS 7.0 and above, the .NET handling has been integrated into the webserver itself, and IIS might be considered an application server, hosting .NET applications (ASP.NET).

IIS 6.0 基本上是一个 Web 服务器,带有一个扩展名为 aspnet_isapi.dll,它处理 ASP.NET 功能。在 IIS 7.0 及更高版本中,.NET 处理已集成到 Web 服务器本身中,并且 IIS 可能被视为应用服务器,托管 .NET 应用程序 (ASP.NET)。

If you are looking for something similar to a Java Bean container in .NET, there is really no such concept. You can use Windows Services, or you can use Windows Azure worker roles, they resemble "app servers" as JBoss, etc.

如果您正在寻找类似于 .NET 中的 Java Bean 容器的东西,那么实际上没有这样的概念。您可以使用 Windows 服务,也可以使用 Windows Azure 辅助角色,它们类似于 JBoss 等“应用服务器”。

Are there any more specific questions? It's really difficult to elaborate more without going too far off your original question.

有没有更具体的问题?在不偏离原始问题的情况下,很难详细说明。