Web Server - Internet Technologies

What is Web Server?

Web server is generally a computer where we store the web content. Web server is basically to host the web sites but there exists other web servers as well as gaming, storage, FTP, email etc.

Web server is the software that responds to the request for web resources while web site is a collection of web pages.

Web Server Working

  • Web Server responds to the client request in following ways:
  • Sending the file to the client associated with the requested URL.
  • By communicating with the database through script, the response is generated.

Web Server

Key Points

  • When a web page is requested, the web server searches the requested page and if found then it will send it to the client with an HTTP response.
  • If the requested web page is not found, then the web server will send an HTTP response:Error 404 Not found.
  • If some other resources are requested by client then the web server will contact to the application server and data store for constructing the HTTP response.

Architecture

Web Server Architecture follows the below two approaches:

  • Concurrent Approach
  • Single-Process-Event-Driven Approach.

Concurrent Approach

This way of approach helps the web server to handle multiple client requests at the same time. Below methods are helpful in achieving.

  • Multi-process
  • Multi-threaded
  • Hybrid method.

Multi-processing

In Multi-processing, the parent process will initiate other single-threaded child processes and distribute the requests to these child processes.

Parent process will monitor the load and take decision if the processes should be killed or not.

Multi-threaded

In this processes, multiple single-threaded processes are created.

Hybrid

Above two approaches are combined to form a Hybrid. Multiple approaches are created and each process initiates multiple threads where each thread handles one connection. Using this process, the load is less on the system resources.

Examples

Below table explains the leading web servers available today:

S.N. Web Server Descriptino
1 Apache HTTP Server
This is the most popular web server in the world developed by the Apache Software Foundation. Apache web server is an open source software and can be installed on almost all operating systems including Linux, UNIX, Windows, FreeBSD, Mac OS X and more. About 60% of the web server machines run the Apache Web Server.
2. Internet Information Services (IIS)
The Internet Information Server (IIS) is a high performance Web Server from Microsoft. This web server runs on Windows NT/2000 and 2003 platforms (and may be on upcoming new Windows version also). IIS comes bundled with Windows NT/2000 and 2003; Because IIS is tightly integrated with the operating system so it is relatively easy to administer it.
3. Lighttpd
The lighttpd, pronounced lighty is also a free web server that is distributed with the FreeBSD operating system. This open source web server is fast, secure and consumes much less CPU power. Lighttpd can also run on Windows, Mac OS X, Linux and Solaris operating systems.
4. Sun Java System Web Server
This web server from Sun Microsystems is suited for medium and large web sites. Though the server is free it is not open source. It however, runs on Windows, Linux and UNIX platforms. The Sun Java System web server supports various languages, scripts and technologies required for Web 2.0 such as JSP, Java Servlets, PHP, Perl, Python, and Ruby on Rails, ASP and Coldfusion etc.
5. Jigsaw Server
Jigsaw (W3C's Server) comes from the World Wide Web Consortium. It is open source and free and can run on various platforms like Linux, UNIX, Windows, and Mac OS X Free BSD etc. Jigsaw has been written in Java and can run CGI scripts and PHP programs.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Internet Technologies Topics