Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application server Vs Web server [closed]

I'm more or less familiar with APACHE and LAMP but I can't see what an application server is. Can someone please explain to me the difference between an application server and a web server?

like image 218
houcem Avatar asked Jun 03 '11 11:06

houcem


2 Answers

You know web servers: they handle HTTP requests.

App servers are generally used in the Java EE space. They may or may not have a web server built in. They add servlet/JSP support (servlets are Java classes that run in an app server and listen for HTTP requests; JSPs are Java Server Pages, a templating solution that uses servlets to generate HTML) and sometimes EJBs (Enterprise Java Beans).

The app server provides services such as threading, naming, pooling, etc. to objects that run inside it.

like image 113
duffymo Avatar answered Sep 25 '22 08:09

duffymo


An application server runs applications/services to be used by various clients. In general it allows you to deploy and manage applications which need to run on a server machine instead of on a desktop.

It offers typically a large set of services to be used by the applicaitons such as security, messaging, transaction coordination, etc...

It may or may not have a web server as part of the package (but most do).

A web server only deals with handling HTTP requests and returning web pages and other static or dynamic content.

In practice the line dividing web servers is not razor sharp and there is a sizable grey area between the two.

like image 30
Peter Tillemans Avatar answered Sep 21 '22 08:09

Peter Tillemans