Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
704 views
in Technique[技术] by (71.8m points)

webserver - 应用程序服务器和Web服务器之间有什么区别?(What is the difference between application server and web server?)

应用程序服务器和Web服务器之间有什么区别?

  ask by TwiggedToday translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Most of the times these terms Web Server and Application server are used interchangeably.

(大多数情况下,这些术语Web服务器和应用程序服务器可互换使用。)

Following are some of the key differences in features of Web Server and Application Server:

(以下是Web Server和Application Server功能的一些主要区别:)

  • Web Server is designed to serve HTTP Content.

    (Web服务器旨在提供HTTP内容。)

    App Server can also serve HTTP Content but is not limited to just HTTP.

    (App Server也可以提供HTTP内容,但不仅限于HTTP。)

    It can be provided other protocol support such as RMI/RPC

    (可以提供其他协议支持,例如RMI / RPC)

  • Web Server is mostly designed to serve static content, though most Web Servers have plugins to support scripting languages like Perl, PHP, ASP, JSP etc. through which these servers can generate dynamic HTTP content.

    (Web Server主要设计用于提供静态内容,尽管大多数Web Server具有支持Perl,PHP,ASP,JSP等脚本语言的插件,这些服务器可通过这些语言生成动态HTTP内容。)

  • Most of the application servers have Web Server as integral part of them, that means App Server can do whatever Web Server is capable of.

    (大多数应用程序服务器将Web服务器作为它们的组成部分,这意味着App Server可以执行Web Server能够执行的任何工作。)

    Additionally App Server have components and features to support Application level services such as Connection Pooling, Object Pooling, Transaction Support, Messaging services etc.

    (此外,App Server具有支持应用程序级服务的组件和功能,例如连接池,对象池,事务支持,消息服务等。)

  • As web servers are well suited for static content and app servers for dynamic content, most of the production environments have web server acting as reverse proxy to app server.

    (由于Web服务器非常适合静态内容,而应用程序服务器非常适合动态内容,因此大多数生产环境都将Web服务器用作应用程序服务器的反向代理。)

    That means while servicing a page request, static contents (such as images/Static HTML) are served by web server that interprets the request.

    (这意味着在处理页面请求时,由解释请求的Web服务器提供静态内容(例如图像/静态HTML)。)

    Using some kind of filtering technique (mostly extension of requested resource) web server identifies dynamic content request and transparently forwards to app server

    (Web服务器使用某种过滤技术(主要是请求资源的扩展)识别动态内容请求并透明地转发到应用服务器)

Example of such configuration is Apache Tomcat HTTP Server and Oracle (formerly BEA) WebLogic Server.

(这种配置的示例是Apache Tomcat HTTP Server和Oracle(以前称为BEA)WebLogic Server。)

Apache Tomcat HTTP Server is Web Server and Oracle WebLogic is Application Server.

(Apache Tomcat HTTP Server是Web服务器,Oracle WebLogic是应用程序服务器。)

In some cases the servers are tightly integrated such as IIS and .NET Runtime.

(在某些情况下,服务器是紧密集成的,例如IIS和.NET Runtime。)

IIS is web server.

(IIS是Web服务器。)

When equipped with .NET runtime environment, IIS is capable of providing application services.

(当配备.NET运行时环境时,IIS能够提供应用程序服务。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...