Site icon Rangana's Tech Blog

Pros and Cons of Web Servers, Node JS Web Server, Apache Tomcat Server and Nginx

What is a Web Server ?

A web server is software and hardware that uses HTTP (Hypertext Transfer Protocol) and other protocols to respond to client requests made over the World Wide Web(WWW). The main job of a web server is displaying website content over storing, processing and delivering webpages to users. Please refer the Pros and Cons of Web Servers in the below.

Node JS Web Server

Node.js provides capabilities to create your own web server which will handle HTTP requests asynchronously.

You can use Nginx or Tomcat or any popular server to run Node.js web application but it is recommended to use Node.js web server.

PROS

CONS

Apache Tomcat Server

Apache Tomcat, one of the most popular web server and so popular for Java developers. Tomcat is a platform-independent tool, and, as long there is Java installed, the installation is a straightforward process. You just need to download the desired version from the official website and then unpack it on your file system.

PROS

CONS

Nginx Web Server

Nginx is a simple, lightweight and fast web server. It is specially designed for high traffic websites. Nginx was designed from the ground up to use an asynchronous, non-blocking, event-driven connection handling algorithm.

The main difference between Apache and NGINX lies in their design architecture. Apache uses a process-driven approach and creates a new thread for each request. Whereas NGINX uses an event-driven architecture to handle multiple requests within one thread.

PROS

CONS

Exit mobile version