Sie sind auf Seite 1von 4

Ques:1 Write a short note on: -

A) Web Server
Ans:
Introduction
Web server is a computer where the web content is stored. Basically, web server is
used to host the web sites but there exist other web servers also such as gaming,
storage, FTP, email etc.
NOTE: Web site is collection of web pages while web server is a software that respond to the
request for web resources

Web Server Working


Web server respond to the client request in either of the following two ways:
 Sending the file to the client associated with the requested URL.
 Generating response by invoking a script and communicating with database

Key Points
 When client sends request for a web page, the web server search for the requested page if
requested page is found then it will send it to client with an HTTP response.
 If the requested web page is not found, web server will the send an HTTP response: Error
404 Not found.
 If client has requested for some other resources then the web server will contact to the
application server and data store to construct the HTTP response.
Architecture
Web Server Architecture follows the following two approaches:
1. Concurrent Approach
2. Single-Process-Event-Driven Approach.

Concurrent Approach
Concurrent approach allows the web server to handle multiple client requests at the
same time. It can be achieved by following methods:
 Multi-process
 Multi-threaded
 Hybrid method.
The following methods are described below:
1. Multi-processing
In this a single process (parent process) initiates several single-threaded child
processes and distribute incoming requests to these child processes. Each of the child
processes are responsible for handling single request.
It is the responsibility of parent process to monitor the load and decide if processes
should be killed or forked.
2. Multi-threaded
Unlike Multi-process, it creates multiple single-threaded process.
3. Hybrid
It is combination of above two approaches. In this approach multiple process are
created and each process initiates multiple threads. Each of the threads handles one
connection. Using multiple threads in single process results in less load on system
resources.

Examples
 Apache HTTP Server
 Internet Information Services (IIS)
 Lighttpd
 Sun Java System Web Server
 Jigsaw Server
B) Database Server

Introduction
 A database server can be defined as a server dedicated to providing database services.
Such a server runs the database software. A database server can typically be seen in a
client-server environment where it provides information sought by the client systems. A
database server is much more efficient than a file server.
 In Database Network the client executes SQL requests to the database server. The Network
Database Server Process the client database request and the executed answers of SQL
command are come back over the network computer. In the whole concept Database
server serves its own power to process the request or search the requested result. The
Database server some time also known as SQL engine.

 All database functions are controlled by the database server. Any type of computer can be
used as database server. It may be microcomputer, minicomputer or mainframe computer.
In large organization networks, the mainframe computers are used as server.
 Some people refer to the central DBMS functions as the back-end functions, whereas the
application programs on the client computer as front-end programs.
 The Database server manages the recovery security services of the DBMS. It enforces the
constraints that are specified inside the DBMS. It controls and manages all the clients that
are connected to it. It handles all database access and control functions.
 It provides concurrent access control. It provides better security and server hides the DBMS
from clients. It provides the multi-user environment. Several users can access the database
simultaneously. All the data is stored on the data server therefore, the DBA can easily
create the backup of the database.
 A standard called ODBC (Open Database Connectivity) provides an application
programming interface (API), which allows client side programs to call the DBMS on the
server side. For this purpose, necessary software should be installed on both sides (i.e.,
client and server). Hence, a client program connects to the Database server and sends
requests (queries) using the ODBC Application Programming Interface (API). The-server
processes the queries and sends back the results of queries to the client program, which
are processed by the client computer.

Different database servers


 MySQL: MySQL is a freely available open source Relational Database
Management System (RDBMS) that uses Structured Query Language (SQL). SQL is
the most popular language for adding, accessing and managing content in a
database.
 PostgreSQL: PostgreSQL is a general-purpose object-relational database
management system. It allows you to add custom functions developed using
different programming languages such as C/C++, Java, etc. PostgreSQL is
designed to be extensible
 MSSQL: SQL Server is a database server by Microsoft. The Microsoft relational
database management system is a software product which primarily stores and
retrieves data requested by other applications
 SQLite: SQLite is an opensource SQL database that stores data to a text file on a
device.
 MS Access: Microsoft Access is an information management tool that helps you
store information for reference, reporting, and analysis. Microsoft Access helps
you analyze large amounts of information, and manage related data more
efficiently than Microsoft Excel or other spreadsheet applications

Das könnte Ihnen auch gefallen