Web Server and an Application Server

Web server serves pages for viewing in a web browser while Apps server provides methods that client application can call. The web server exclusively handles HTTP requests where as apps server serves business logic to application program through any number of protocols. Web server cannot handle huge load (handles request/response up to 10,000 request/responses).An apps server is for all types of protocols such as HTTP, FTP, and SMTP so on. An apps server can handle huge request/response.

The web server handles the HTTP protocol. To process a request a web server may respond with a static html page or image, send a redirect or delegate the dynamic response generation to some other program such as CGI scripts, JSP, Servlets, ASP, Serverside javascripts, or some other server side technology. The web server does not provide any functionality beyond simply providing an environment in which the server side program can execute and pass back the generated responses. The web server may not itself support transactions or database connection pooling. It may employ various strategies for fault tolerance and scalability such as load balancing, caching, and clustering features often times erroneously assigned as features only for application server.

Application server exposes business logic to client application through various protocols. An application server provides access to business logic for use by client application program. The application program can use this logic just as it would call a method on a object. In most cases the server exposes this business logic through component API such as the EJB component model. Moreover the application server manages its own resources such as security, transactions, resource pooling and messaging.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: