SlideShare a Scribd company logo
CLIENT–SERVER COMPUTING   215


CLIENT–SERVER COMPUTING                                      A client–server environment may use a variety of
                                                             operating systems and hardware from multiple ven-
 For articles on related subjects see DISTRIBUTED SYSTEMS;   dors; standard network protocols like TCP/IP provide
 ELECTRONIC COMMERCE; OPERATING SYSTEMS:
                                                             compatibility. Vendor independence and freedom of
 CONTEMPORARY ISSUES; and TCP/IP.
                                                             choice are further advantages of the model. Inexpen-
                                                             sive PC equipment can be interconnected with main-
Introduction                                                 frame servers, for example.
Client–server computing is a distributed computing
                                                             Client–server systems can be scaled up in size more
model in which client applications request services
                                                             readily than centralized solutions since server functions
from server processes. Clients and servers typically run
                                                             can be distributed across more and more server
on different computers interconnected by a computer
                                                             computers as the number of clients increases. Server
network. Any use of the Internet (q.v.), such as infor-
                                                             processes can thus run in parallel, each process serving
mation retrieval (q.v.) from the World Wide Web (q.v.),
                                                             its own set of clients. However, when there are multiple
is an example of client–server computing. However,
                                                             servers that update information, there must be some
the term is generally applied to systems in which an
                                                             coordination mechanism to avoid inconsistencies.
organization runs programs with multiple components
distributed among computers in a network. The con-           The drawbacks of the client–server model are that
cept is frequently associated with enterprise comput-        security is more difficult to ensure in a distributed
ing, which makes the computing resources of an               environment than it is in a centralized one, that the
organization available to every part of its operation.       administration of distributed equipment can be much
                                                             more expensive than the maintenance of a centralized
A client application is a process or program that sends
                                                             system, that data distributed across servers needs to
messages to a server via the network. Those messages
                                                             be kept consistent, and that the failure of one server
request the server to perform a specific task, such as
                                                             can render a large client–server system unavailable. If
looking up a customer record in a database or return-
                                                             a server fails, none of its clients can make further prog-
ing a portion of a file on the server’s hard disk. The
                                                             ress, unless the system is designed to be fault-tolerant
client manages local resources such as a display, key-
                                                             (see FAULT-TOLERANT COMPUTING).
board, local disks, and other peripherals.
                                                             The computer network can also become a perform-
The server process or program listens for client             ance or reliability bottleneck: if the network fails, all
requests that are transmitted via the network. Servers       servers become unreachable. If one client produces
receive those requests and perform actions such as           high network traffic then all clients may suffer from
database queries and reading files. Server processes          long response times.
typically run on powerful PCs, workstations (q.v.), or
mainframe (q.v.) computers.
                                                             Design Considerations
An example of a client–server system is a banking
                                                             An important design consideration for large client–
application that allows a clerk to access account infor-
                                                             server systems is whether a client talks directly to the
mation on a central database server. All access is done
                                                             server, or whether an intermediary process is intro-
via a PC client that provides a graphical user interface
                                                             duced between the client and the server. The former
(GUI). An account number can be entered into the GUI
                                                             is a two-tier architecture, the latter is a three-tier
along with how much money is to be withdrawn or
                                                             architecture.
deposited, respectively. The PC client validates the data
provided by the clerk, transmits the data to the data-       The two-tier architecture is easier to implement and
base server, and displays the results that are returned      is typically used in small environments (one or two
by the server.                                               servers with one or two dozens of clients). However, a
                                                             two-tier architecture is less scalable than a three-tier
The client–server model is an extension of the object-
                                                             architecture.
based (or modular) programming model, where large
pieces of software are structured into smaller compo-        In the three-tier architecture, the intermediate process
nents that have well defined interfaces. This decen-          is used for decoupling clients and servers. The inter-
tralized approach helps to make complex programs             mediary can cache frequently used server data to
maintainable and extensible. Components interact by          ensure better performance and scalability (see CACHE
exchanging messages or by Remote Procedure Calling           MEMORY). Performance can be further increased by
(RPC —see DISTRIBUTED SYSTEMS). The calling com-             having the intermediate process distribute client re-
ponent becomes the client and the called component           quests to several servers so that requests execute in
the server.                                                  parallel.
216   CLIENT–SERVER COMPUTING



The intermediary can also act as a translation service           is lost or corrupted when a failure occurs (consis-
by converting requests and replies from one format to            tency). For the sake of high availability, critical
another or as a security service that grants server              servers can be replicated, which means they are
access only to trusted clients.                                  provided redundantly on multiple computers. If one
                                                                 replica fails then the other replicas still remain
Other important design considerations are:
                                                                 accessible by the clients. To ensure consistent
• Fat vs. thin client: A client may implement any-               modification of database records stored on multiple
  thing from a simple data entry form to a complex               servers, a transaction processing (TP—q.v.) monitor
  business application. An important design consid-              can be installed. TP monitors are intermediate
  eration is how to partition application logic into             processes that specialize in managing client requests
  client and server components. This has an impact               across multiple servers. The TP monitor ensures that
  on the scalability and maintainability of a client–            such requests happen in an ‘‘all-or-nothing’’ fashion
  server system. A ‘‘thin’’ client receives information          and that all servers involved in such requests are left
  in its final form from the server and does little or no         in a consistent state, in spite of failures.
  data processing. A ‘‘fat’’ client does more process-
  ing, thereby lightening the load on the server.             Distributed Object Computing
• Stateful vs. stateless: Another design considera-           Distributed object computing (DOC) is a generalization
  tion is whether a server should be stateful or state-       of the client–server model. Object-oriented modeling
  less. A stateless server retains no information about       and programming are applied to the development of
  the data that clients are using. Client requests are        client–server systems. Objects are pieces of software
  fully self-contained and do not depend on the inter-        that encapsulate an internal state and make it acces-
  nal state of the server. The advantage of the state-        sible through a well-defined interface. In DOC, the
  less model is that it is easier to implement and that       interface consists of object operations and attributes
  the failure of a server or client is easier to handle,      that are remotely accessible. Client applications may
  as no state information about active clients is main-       connect to a remote instance of the interface with the
  tained. However, applications where clients need            help of a naming service. Finally, the clients invoke the
  to acquire and release locks on the records stored          operations on the remote object. The remote object
  at a database server usually require a stateful             thus acts as a server.
  model, because locking information is maintained            This use of objects naturally accommodates hetero-
  by the server for each individual client (see DATA-         geneity and autonomy. It supports heterogeneity since
  BASE CONCURRENCY CONTROL).                                  requests sent to server objects depend only on their
• Authentication: For security purposes servers               interfaces and not on their internals. It permits auton-
  must also address the problem of authentication             omy because object implementations can change
  (q.v.). In a networked environment, an unauthor-            transparently, provided they maintain their interfaces.
  ized client may attempt to access sensitive data            If complex client–server systems are to be assembled
  stored on a server. Authentication of clients is            out of objects, then objects must be compatible.
  handled by using cryptographic techniques such as           Client–server objects have to interact with each other
  public key encryption (see CRYPTOGRAPHY, COMPUT-            even if they are written in different programming
  ERS IN) or special authentication (q.v.) servers such
                                                              languages and run on different hardware and operat-
  as in the OSF DCE system described below.                   ing system platforms.
   In public key encryption, the client application
                                                              Standards are required for objects to interoperate
   ‘‘signs’’ requests with its private cryptographic key
                                                              in heterogeneous environments. One of the widely
   (see DIGITAL SIGNATURE), and encrypts the data in
                                                              adopted vendor-independent DOC standards is the
   the request with a secret session key known only to
                                                              OMG (Object Management Group) CORBA (Common
   the server and to the client. On receipt of the request,
                                                              Object Request Broker Architecture) specification.
   the server validates the signature of the client and
                                                              CORBA consists of the following building blocks:
   decrypts the request only if the client is authorized to
   access the server.
                                                              • Interface Definition Language: Object interfaces
• Fault tolerance: Applications such as flight-reserva-          are described in a language called IDL (Interface
  tion systems and real-time market data feeds must             Definition Language). IDL is a purely declarative
  be fault-tolerant. This means that important ser-             language resembling Cþþ. It provides the notion
  vices remain available in spite of the failure of part        of interfaces (similar to classes), of interface
  of the computer system on which the servers are               inheritance, of operations with input and output
  running (high availability), and that no information          arguments, and of data types (q.v.) that can be
CLIENT–SERVER COMPUTING   217


   passed along with an operation. IDL serves for          ware. CORBA implementations are an example of
   declaring remotely accessible server objects in a       well-known client–server middleware. Other examples
   platform- and programming language-neutral man-         are OSF DCE, DCOM, message-oriented middleware,
   ner, but not for implementing those objects.            and transaction processing monitors.
   CORBA objects are implemented in widely used
   languages such as Cþþ, C, Java, and Smalltalk.          • OSF DCE: The Open Software Foundation (OSF)
                                                             Distributed Computing Environment (DCE) is a
• Object Request Broker: The purpose of the ORB              de facto standard for multivendor client–server
  (Object Request Broker) is to find the server object        systems. DCE is a collection of tools and services
  for a client request, to prepare the object to receive     that help programmers in developing heteroge-
  the request, to transmit the request from the client       neous client–server applications. DCE is a large
  to the server object, and to return output arguments       and complex software package; it mainly includes
  back to the client application. The ORB mainly             a remote procedure call facility, a naming service,
  provides an object-oriented RPC facility.                  a clock synchronization service, a client–server
• Basic Object Adapter: The BOA (Basic Object                security infrastructure, and a threads package (see
  Adapter) is the primary interface used by a server         MULTITASKING).
  object to gain access to ORB functions. The BOA          • DCOM: Distributed Component Object Model
  exports operations to create object references, to         (DCOM) is Microsoft’s object protocol that enables
  register and activate server objects, and to authen-       ActiveX components to communicate with each
  ticate requests. An object reference is a data             other across a computer network. An ActiveX com-
  structure that denotes a server object in a network.       ponent is a remote accessible object that has a well-
  A server installs its reference in a name server so        defined interface and is self-contained. ActiveX
  that a client application can retrieve the reference       components can be embedded into Web docu-
  and invoke the server. The object reference pro-           ments, so that they download to the client auto-
  vides the same interface as the server object that it      matically to execute in the client’s Web browser
  represents. Details of the underlying communica-           (see WORLD WIDE WEB). DCOM provides a remote
  tion infrastructure are hidden from the client.            instantiation facility allowing clients to create
                                                             remote server objects. It also provides a security
• Dynamic Invocation Interface: The DII (Dynamic
                                                             model to let programmers restrict who may create
  Invocation Interface) defines functions for creating
                                                             a server object and who may invoke it. Finally, an
  request messages and for delivering them to server
                                                             Interface Definition Language (IDL) is provided for
  objects. The DII is a low-level equivalent of the
                                                             defining remotely accessible object interfaces and
  communication stubs (message-passing interfaces)
                                                             composing remote procedure calls.
  that are generated from an IDL declaration.
                                                           • MOM: Message-Oriented Middleware (MOM)
• Internet Inter-ORB Protocol: The Internet Inter-           allows the components of a client–server system to
  ORB Protocol (IIOP) allows CORBA ORBs from                 interoperate by exchanging general purpose mes-
  different vendors to interoperate via a TCP/IP con-         sages. A client application communicates with a
  nection. IIOP is a simplified RPC protocol used to          server by placing messages into a message queue.
  invoke server objects via the Internet in a portable       The client is relieved of the tasks involved in trans-
  and efficient manner.                                        mitting the messages to the server reliably. After the
• Interface and Implementation Repository: The               client has placed a message into a message queue, it
  CORBA Interface Repository is a database contain-          continues other work until the MOM informs the
  ing type information (interface names, interface           client that the server’s reply has arrived. This kind
  operations, and argument types) for the interfaces         of communication is called asynchronous messag-
  available in a CORBA system. This information is           ing, since client and server are decoupled by mes-
  used for dynamic invocation via the DII, for revision      sage queues. MOM functions much like electronic
  control, and so forth. The Implementation Reposi-          mail, storing and forwarding messages on behalf
  tory provides information allowing an ORB to locate        of client and server applications. Messages may be
  and launch server objects.                                 submitted even when the receiver happens to be
                                                             temporarily unavailable, and are thus inherently
                                                             more flexible and fault-tolerant than RPC. Exam-
Client–Server Toolkits
                                                             ples of MOM are IBM’s MQSeries product and the
A wide range of software toolkits for building client–       OMG Event Service. Web push technologies such
server software is available on the market today.            as Marimba’s Castanet also fall into the category of
Client–server toolkits are also referred to as middle-       message-oriented middleware.
218    CLUSTER COMPUTING



• Transaction Processing (TP) Monitors: Transac-                   used as a single computing resource. Clusters have
  tion processing (q.v.) monitors allow a client appli-            been used from the dawn of electronic computing as a
  cation to perform a series of requests on multiple               straightforward way to obtain greater capacity and
  remote servers while preserving consistency among                higher reliability than a single computer can provide.
  the servers. Such a series of requests is called a               Clusters can be an informal, if not anarchic, computer
  transaction. The TP monitor ensures that either all              organization. Often they have not been built by com-
  requests that are part of a transaction succeed, or              puter manufacturers but rather assembled by custom-
  that the servers are rolled back to the state they had           ers on an ad hoc basis to solve a problem at hand.
  before the unsuccessful transaction was started.
  A transaction fails when one of the involved com-                The first cluster probably appeared in the late 1950s
  puters or applications goes down, or when any of                 or early 1960s when some company’s finance officer,
  the applications decides to abort the transaction.               realizing that payroll checks wouldn’t get printed if the
  TP monitors are part of client–server products such              computer broke down, purchased a spare. Software
  as Novell’s Tuxedo and Transarc’s Encina.                        tools for managing groups of computers and submit-
                                                                   ting batch jobs to them, such as IBM’s Remote Job
   A TP monitor can be used within a banking system                Entry (RJE) System, became commercially available
   when funds are withdrawn from an account on one                 in the mid-1970s. By the late 1970s, Tandem Comput-
   database server and deposited in an account on                  ers began selling highly reliable systems that were
   another database server. The monitor makes sure                 clusters, with software to make them appear to access
   that the transaction occurs in an ‘‘all or nothing’’            a single database system. However, it was not until
   fashion. If any of the servers fails during the                 the early 1980s that DEC (Digital Equipment Cor-
   transfer then the transaction is rolled back such               poration—q.v.) coined the term cluster for a collection
   that both accounts are in the state they were before            of software and hardware that made several VAX
   transaction was started.                                        minicomputers (q.v.) appear to be a single time-
                                                                   sharing (q.v.) system called the VAXcluster.
                        Bibliography
1995. Mowbray, T. J., and Zahavi, R. The Essential CORBA.          With the appearance of very high performance per-
  New York: John Wiley.                                            sonal workstations (q.v.) in the early 1990s, technical
1996. Andrade, J. M. (ed.), Dwyer, T., Felts, S., and Carges, M.   computer users began replacing expensive super-
  The Tuxedo System: Software for Constructing and Managing        computers with clusters of those workstations which
  Distributed Business Applications. Reading, MA:
  Addison-Wesley.                                                  they assembled themselves. Computer manufacturers
1997. Shan, Y.-P., Earle, R. H., and Lenzi, M. A. Enterprise       responded with prepackaged workstation clusters,
  Computing With Objects: From Client/Server Environments          which became the standard form of supercomputers
  to the Internet. Reading, MA: Addison-Wesley.
                                                                   by the mid-1990s; a system of this type with special-
1998. Orfali, R., and Harkey, D. Client/Server Programming
  with Java and CORBA, 2nd Ed. New York: John Wiley.               purpose added hardware achieved the milestone of
                                                                   defeating the reigning human chess champion, Garry
                          Websites                                 Kasparov (see COMPUTER CHESS). By 1998, even those
Client–server frequently asked questions URLs: http://www.         systems were being challenged by user-constructed
  abs.net/lloyd/csfaq.txt.                                        clusters of increasingly powerful personal computers.
OMG CORBA documentation URL: http://www.omg.org.                   A very large, highly diffuse and informal cluster—
OSF DCE documentation URL: http://www.rdg.                         using spare time on approximately 22,000 personal
  opengroup.org/public/pubs/catalog/dz.htm.
Microsoft ActiveX and related technology URL: http://www.          computers owned by volunteers, connected only
  microsoft.com/com.                                               occasionally though the Internet—succeeded in Feb-
                                               Silvano Maffeis      ruary 1998 in decoding a ‘‘challenge’’ message en-
                                                                   crypted using the Data Encryption Standard system
                                                                   with a 56-bit key (see CRYPTOGRAPHY, COMPUTERS IN).
CLUSTER COMPUTING                                                  The answer was found by simply trying one after
                                                                   another of the 63 quadrillion possible keys; success
 For articles on related subjects see CLIENT–SERVER                came after taking only 39 days to examine 85% of the
 COMPUTING; COOPERATIVE COMPUTING; DATABASE
 MANAGEMENT SYSTEM; DISTRIBUTED SYSTEMS;
                                                                   keys. Appropriately, the decoded message read ‘‘Many
 MULTIPROCESSING; NETWORKS, COMPUTER; PARALLEL                     hands make light work.’’
 PROCESSING; and SUPERCOMPUTERS.
                                                                   Individual spectacular feats such as this are not,
                                                                   however, the reason that computer industry analysts
Introduction                                                       estimated that half of all high performance server com-
A cluster of computers, or simply a cluster, is a collec-          puter systems would be clusters by the turn of the cen-
tion of computers that are connected together and                  tury. Clusters provide a practical means of increasing

More Related Content

DOCX
Client server computing_keypoint_and_questions
PPTX
Client computing evolution ppt11
PDF
Client server-computing
PPT
Client Server Computing : unit 1
PPT
Client-Server Computing
PPT
Client Server Computing Slides by Puja Dhar
DOCX
Introduction to the client server computing By Attaullah Hazrat
PPT
Client Server Architecture1
Client server computing_keypoint_and_questions
Client computing evolution ppt11
Client server-computing
Client Server Computing : unit 1
Client-Server Computing
Client Server Computing Slides by Puja Dhar
Introduction to the client server computing By Attaullah Hazrat
Client Server Architecture1

What's hot (20)

PPT
Ch 8 Client Server
PDF
Client server based computing
PPTX
Client server computing
PPTX
PPS
Chapter2
PPTX
Client/Server Architecture By Faisal Shahzad
PDF
2 08 client-server architecture
DOCX
Clientserver
DOC
04 Client Server Computing
PPTX
Client server architecture
PPT
Components of client server application
PPTX
Client server technology main
PPTX
client server architecture
DOCX
Differences Between Architectures
PPTX
Client Server System Development
PPTX
Stephy
PDF
Client Server Model and Distributed Computing
PPTX
Client Server Architecture in Database Management System
PPTX
Client Server models in JAVA
Ch 8 Client Server
Client server based computing
Client server computing
Chapter2
Client/Server Architecture By Faisal Shahzad
2 08 client-server architecture
Clientserver
04 Client Server Computing
Client server architecture
Components of client server application
Client server technology main
client server architecture
Differences Between Architectures
Client Server System Development
Stephy
Client Server Model and Distributed Computing
Client Server Architecture in Database Management System
Client Server models in JAVA
Ad

Viewers also liked (8)

PPT
BIS and DDE In Action
PPTX
Clientserver Presentation
PPT
Computer storage devices
PPT
Object-oriented concepts
PPTX
Storage Devices
PPT
Storage Devices PPt For class 9
PPTX
storage devices
PPT
Presentation on storage device
BIS and DDE In Action
Clientserver Presentation
Computer storage devices
Object-oriented concepts
Storage Devices
Storage Devices PPt For class 9
storage devices
Presentation on storage device
Ad

Similar to Client server computing (20)

PDF
Client server computing
PPT
Part 1 network computing
PDF
2client
PDF
Cs architecture
PPTX
Distributed Software Engineering with Client-Server Computing
PDF
Lecture 11 client_server_interaction
PPT
4. system models
PDF
"Parallel and Distributed Computing: BOINC Grid Implementation" por Rodrigo N...
PDF
Parallel and Distributed Computing: BOINC Grid Implementation Paper
PPTX
Server its functions and types.pptx
DOC
Client server-architecture-1229147658096208-1
PDF
An Introduction To Client Server Computing Yadav Subhash Chandra
DOC
Thin Client
PPT
client-server-architecture.ppt
PPT
client-server-architecture ss.ppt
PPTX
unit 4-1.pptx
DOC
Distributed Computing Report
DOCX
Types of networks according to security
DOCX
Types of networks according
PPTX
client-server.pptx
Client server computing
Part 1 network computing
2client
Cs architecture
Distributed Software Engineering with Client-Server Computing
Lecture 11 client_server_interaction
4. system models
"Parallel and Distributed Computing: BOINC Grid Implementation" por Rodrigo N...
Parallel and Distributed Computing: BOINC Grid Implementation Paper
Server its functions and types.pptx
Client server-architecture-1229147658096208-1
An Introduction To Client Server Computing Yadav Subhash Chandra
Thin Client
client-server-architecture.ppt
client-server-architecture ss.ppt
unit 4-1.pptx
Distributed Computing Report
Types of networks according to security
Types of networks according
client-server.pptx

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Approach and Philosophy of On baking technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Electronic commerce courselecture one. Pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
A Presentation on Artificial Intelligence
PDF
cuic standard and advanced reporting.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Empathic Computing: Creating Shared Understanding
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Big Data Technologies - Introduction.pptx
PDF
KodekX | Application Modernization Development
PDF
Encapsulation theory and applications.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
Review of recent advances in non-invasive hemoglobin estimation
Diabetes mellitus diagnosis method based random forest with bat algorithm
Electronic commerce courselecture one. Pdf
20250228 LYD VKU AI Blended-Learning.pptx
Unlocking AI with Model Context Protocol (MCP)
Network Security Unit 5.pdf for BCA BBA.
A Presentation on Artificial Intelligence
cuic standard and advanced reporting.pdf
NewMind AI Monthly Chronicles - July 2025
Empathic Computing: Creating Shared Understanding
Building Integrated photovoltaic BIPV_UPV.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Big Data Technologies - Introduction.pptx
KodekX | Application Modernization Development
Encapsulation theory and applications.pdf

Client server computing

  • 1. CLIENT–SERVER COMPUTING 215 CLIENT–SERVER COMPUTING A client–server environment may use a variety of operating systems and hardware from multiple ven- For articles on related subjects see DISTRIBUTED SYSTEMS; dors; standard network protocols like TCP/IP provide ELECTRONIC COMMERCE; OPERATING SYSTEMS: compatibility. Vendor independence and freedom of CONTEMPORARY ISSUES; and TCP/IP. choice are further advantages of the model. Inexpen- sive PC equipment can be interconnected with main- Introduction frame servers, for example. Client–server computing is a distributed computing Client–server systems can be scaled up in size more model in which client applications request services readily than centralized solutions since server functions from server processes. Clients and servers typically run can be distributed across more and more server on different computers interconnected by a computer computers as the number of clients increases. Server network. Any use of the Internet (q.v.), such as infor- processes can thus run in parallel, each process serving mation retrieval (q.v.) from the World Wide Web (q.v.), its own set of clients. However, when there are multiple is an example of client–server computing. However, servers that update information, there must be some the term is generally applied to systems in which an coordination mechanism to avoid inconsistencies. organization runs programs with multiple components distributed among computers in a network. The con- The drawbacks of the client–server model are that cept is frequently associated with enterprise comput- security is more difficult to ensure in a distributed ing, which makes the computing resources of an environment than it is in a centralized one, that the organization available to every part of its operation. administration of distributed equipment can be much more expensive than the maintenance of a centralized A client application is a process or program that sends system, that data distributed across servers needs to messages to a server via the network. Those messages be kept consistent, and that the failure of one server request the server to perform a specific task, such as can render a large client–server system unavailable. If looking up a customer record in a database or return- a server fails, none of its clients can make further prog- ing a portion of a file on the server’s hard disk. The ress, unless the system is designed to be fault-tolerant client manages local resources such as a display, key- (see FAULT-TOLERANT COMPUTING). board, local disks, and other peripherals. The computer network can also become a perform- The server process or program listens for client ance or reliability bottleneck: if the network fails, all requests that are transmitted via the network. Servers servers become unreachable. If one client produces receive those requests and perform actions such as high network traffic then all clients may suffer from database queries and reading files. Server processes long response times. typically run on powerful PCs, workstations (q.v.), or mainframe (q.v.) computers. Design Considerations An example of a client–server system is a banking An important design consideration for large client– application that allows a clerk to access account infor- server systems is whether a client talks directly to the mation on a central database server. All access is done server, or whether an intermediary process is intro- via a PC client that provides a graphical user interface duced between the client and the server. The former (GUI). An account number can be entered into the GUI is a two-tier architecture, the latter is a three-tier along with how much money is to be withdrawn or architecture. deposited, respectively. The PC client validates the data provided by the clerk, transmits the data to the data- The two-tier architecture is easier to implement and base server, and displays the results that are returned is typically used in small environments (one or two by the server. servers with one or two dozens of clients). However, a two-tier architecture is less scalable than a three-tier The client–server model is an extension of the object- architecture. based (or modular) programming model, where large pieces of software are structured into smaller compo- In the three-tier architecture, the intermediate process nents that have well defined interfaces. This decen- is used for decoupling clients and servers. The inter- tralized approach helps to make complex programs mediary can cache frequently used server data to maintainable and extensible. Components interact by ensure better performance and scalability (see CACHE exchanging messages or by Remote Procedure Calling MEMORY). Performance can be further increased by (RPC —see DISTRIBUTED SYSTEMS). The calling com- having the intermediate process distribute client re- ponent becomes the client and the called component quests to several servers so that requests execute in the server. parallel.
  • 2. 216 CLIENT–SERVER COMPUTING The intermediary can also act as a translation service is lost or corrupted when a failure occurs (consis- by converting requests and replies from one format to tency). For the sake of high availability, critical another or as a security service that grants server servers can be replicated, which means they are access only to trusted clients. provided redundantly on multiple computers. If one replica fails then the other replicas still remain Other important design considerations are: accessible by the clients. To ensure consistent • Fat vs. thin client: A client may implement any- modification of database records stored on multiple thing from a simple data entry form to a complex servers, a transaction processing (TP—q.v.) monitor business application. An important design consid- can be installed. TP monitors are intermediate eration is how to partition application logic into processes that specialize in managing client requests client and server components. This has an impact across multiple servers. The TP monitor ensures that on the scalability and maintainability of a client– such requests happen in an ‘‘all-or-nothing’’ fashion server system. A ‘‘thin’’ client receives information and that all servers involved in such requests are left in its final form from the server and does little or no in a consistent state, in spite of failures. data processing. A ‘‘fat’’ client does more process- ing, thereby lightening the load on the server. Distributed Object Computing • Stateful vs. stateless: Another design considera- Distributed object computing (DOC) is a generalization tion is whether a server should be stateful or state- of the client–server model. Object-oriented modeling less. A stateless server retains no information about and programming are applied to the development of the data that clients are using. Client requests are client–server systems. Objects are pieces of software fully self-contained and do not depend on the inter- that encapsulate an internal state and make it acces- nal state of the server. The advantage of the state- sible through a well-defined interface. In DOC, the less model is that it is easier to implement and that interface consists of object operations and attributes the failure of a server or client is easier to handle, that are remotely accessible. Client applications may as no state information about active clients is main- connect to a remote instance of the interface with the tained. However, applications where clients need help of a naming service. Finally, the clients invoke the to acquire and release locks on the records stored operations on the remote object. The remote object at a database server usually require a stateful thus acts as a server. model, because locking information is maintained This use of objects naturally accommodates hetero- by the server for each individual client (see DATA- geneity and autonomy. It supports heterogeneity since BASE CONCURRENCY CONTROL). requests sent to server objects depend only on their • Authentication: For security purposes servers interfaces and not on their internals. It permits auton- must also address the problem of authentication omy because object implementations can change (q.v.). In a networked environment, an unauthor- transparently, provided they maintain their interfaces. ized client may attempt to access sensitive data If complex client–server systems are to be assembled stored on a server. Authentication of clients is out of objects, then objects must be compatible. handled by using cryptographic techniques such as Client–server objects have to interact with each other public key encryption (see CRYPTOGRAPHY, COMPUT- even if they are written in different programming ERS IN) or special authentication (q.v.) servers such languages and run on different hardware and operat- as in the OSF DCE system described below. ing system platforms. In public key encryption, the client application Standards are required for objects to interoperate ‘‘signs’’ requests with its private cryptographic key in heterogeneous environments. One of the widely (see DIGITAL SIGNATURE), and encrypts the data in adopted vendor-independent DOC standards is the the request with a secret session key known only to OMG (Object Management Group) CORBA (Common the server and to the client. On receipt of the request, Object Request Broker Architecture) specification. the server validates the signature of the client and CORBA consists of the following building blocks: decrypts the request only if the client is authorized to access the server. • Interface Definition Language: Object interfaces • Fault tolerance: Applications such as flight-reserva- are described in a language called IDL (Interface tion systems and real-time market data feeds must Definition Language). IDL is a purely declarative be fault-tolerant. This means that important ser- language resembling Cþþ. It provides the notion vices remain available in spite of the failure of part of interfaces (similar to classes), of interface of the computer system on which the servers are inheritance, of operations with input and output running (high availability), and that no information arguments, and of data types (q.v.) that can be
  • 3. CLIENT–SERVER COMPUTING 217 passed along with an operation. IDL serves for ware. CORBA implementations are an example of declaring remotely accessible server objects in a well-known client–server middleware. Other examples platform- and programming language-neutral man- are OSF DCE, DCOM, message-oriented middleware, ner, but not for implementing those objects. and transaction processing monitors. CORBA objects are implemented in widely used languages such as Cþþ, C, Java, and Smalltalk. • OSF DCE: The Open Software Foundation (OSF) Distributed Computing Environment (DCE) is a • Object Request Broker: The purpose of the ORB de facto standard for multivendor client–server (Object Request Broker) is to find the server object systems. DCE is a collection of tools and services for a client request, to prepare the object to receive that help programmers in developing heteroge- the request, to transmit the request from the client neous client–server applications. DCE is a large to the server object, and to return output arguments and complex software package; it mainly includes back to the client application. The ORB mainly a remote procedure call facility, a naming service, provides an object-oriented RPC facility. a clock synchronization service, a client–server • Basic Object Adapter: The BOA (Basic Object security infrastructure, and a threads package (see Adapter) is the primary interface used by a server MULTITASKING). object to gain access to ORB functions. The BOA • DCOM: Distributed Component Object Model exports operations to create object references, to (DCOM) is Microsoft’s object protocol that enables register and activate server objects, and to authen- ActiveX components to communicate with each ticate requests. An object reference is a data other across a computer network. An ActiveX com- structure that denotes a server object in a network. ponent is a remote accessible object that has a well- A server installs its reference in a name server so defined interface and is self-contained. ActiveX that a client application can retrieve the reference components can be embedded into Web docu- and invoke the server. The object reference pro- ments, so that they download to the client auto- vides the same interface as the server object that it matically to execute in the client’s Web browser represents. Details of the underlying communica- (see WORLD WIDE WEB). DCOM provides a remote tion infrastructure are hidden from the client. instantiation facility allowing clients to create remote server objects. It also provides a security • Dynamic Invocation Interface: The DII (Dynamic model to let programmers restrict who may create Invocation Interface) defines functions for creating a server object and who may invoke it. Finally, an request messages and for delivering them to server Interface Definition Language (IDL) is provided for objects. The DII is a low-level equivalent of the defining remotely accessible object interfaces and communication stubs (message-passing interfaces) composing remote procedure calls. that are generated from an IDL declaration. • MOM: Message-Oriented Middleware (MOM) • Internet Inter-ORB Protocol: The Internet Inter- allows the components of a client–server system to ORB Protocol (IIOP) allows CORBA ORBs from interoperate by exchanging general purpose mes- different vendors to interoperate via a TCP/IP con- sages. A client application communicates with a nection. IIOP is a simplified RPC protocol used to server by placing messages into a message queue. invoke server objects via the Internet in a portable The client is relieved of the tasks involved in trans- and efficient manner. mitting the messages to the server reliably. After the • Interface and Implementation Repository: The client has placed a message into a message queue, it CORBA Interface Repository is a database contain- continues other work until the MOM informs the ing type information (interface names, interface client that the server’s reply has arrived. This kind operations, and argument types) for the interfaces of communication is called asynchronous messag- available in a CORBA system. This information is ing, since client and server are decoupled by mes- used for dynamic invocation via the DII, for revision sage queues. MOM functions much like electronic control, and so forth. The Implementation Reposi- mail, storing and forwarding messages on behalf tory provides information allowing an ORB to locate of client and server applications. Messages may be and launch server objects. submitted even when the receiver happens to be temporarily unavailable, and are thus inherently more flexible and fault-tolerant than RPC. Exam- Client–Server Toolkits ples of MOM are IBM’s MQSeries product and the A wide range of software toolkits for building client– OMG Event Service. Web push technologies such server software is available on the market today. as Marimba’s Castanet also fall into the category of Client–server toolkits are also referred to as middle- message-oriented middleware.
  • 4. 218 CLUSTER COMPUTING • Transaction Processing (TP) Monitors: Transac- used as a single computing resource. Clusters have tion processing (q.v.) monitors allow a client appli- been used from the dawn of electronic computing as a cation to perform a series of requests on multiple straightforward way to obtain greater capacity and remote servers while preserving consistency among higher reliability than a single computer can provide. the servers. Such a series of requests is called a Clusters can be an informal, if not anarchic, computer transaction. The TP monitor ensures that either all organization. Often they have not been built by com- requests that are part of a transaction succeed, or puter manufacturers but rather assembled by custom- that the servers are rolled back to the state they had ers on an ad hoc basis to solve a problem at hand. before the unsuccessful transaction was started. A transaction fails when one of the involved com- The first cluster probably appeared in the late 1950s puters or applications goes down, or when any of or early 1960s when some company’s finance officer, the applications decides to abort the transaction. realizing that payroll checks wouldn’t get printed if the TP monitors are part of client–server products such computer broke down, purchased a spare. Software as Novell’s Tuxedo and Transarc’s Encina. tools for managing groups of computers and submit- ting batch jobs to them, such as IBM’s Remote Job A TP monitor can be used within a banking system Entry (RJE) System, became commercially available when funds are withdrawn from an account on one in the mid-1970s. By the late 1970s, Tandem Comput- database server and deposited in an account on ers began selling highly reliable systems that were another database server. The monitor makes sure clusters, with software to make them appear to access that the transaction occurs in an ‘‘all or nothing’’ a single database system. However, it was not until fashion. If any of the servers fails during the the early 1980s that DEC (Digital Equipment Cor- transfer then the transaction is rolled back such poration—q.v.) coined the term cluster for a collection that both accounts are in the state they were before of software and hardware that made several VAX transaction was started. minicomputers (q.v.) appear to be a single time- sharing (q.v.) system called the VAXcluster. Bibliography 1995. Mowbray, T. J., and Zahavi, R. The Essential CORBA. With the appearance of very high performance per- New York: John Wiley. sonal workstations (q.v.) in the early 1990s, technical 1996. Andrade, J. M. (ed.), Dwyer, T., Felts, S., and Carges, M. computer users began replacing expensive super- The Tuxedo System: Software for Constructing and Managing computers with clusters of those workstations which Distributed Business Applications. Reading, MA: Addison-Wesley. they assembled themselves. Computer manufacturers 1997. Shan, Y.-P., Earle, R. H., and Lenzi, M. A. Enterprise responded with prepackaged workstation clusters, Computing With Objects: From Client/Server Environments which became the standard form of supercomputers to the Internet. Reading, MA: Addison-Wesley. by the mid-1990s; a system of this type with special- 1998. Orfali, R., and Harkey, D. Client/Server Programming with Java and CORBA, 2nd Ed. New York: John Wiley. purpose added hardware achieved the milestone of defeating the reigning human chess champion, Garry Websites Kasparov (see COMPUTER CHESS). By 1998, even those Client–server frequently asked questions URLs: http://www. systems were being challenged by user-constructed abs.net/lloyd/csfaq.txt. clusters of increasingly powerful personal computers. OMG CORBA documentation URL: http://www.omg.org. A very large, highly diffuse and informal cluster— OSF DCE documentation URL: http://www.rdg. using spare time on approximately 22,000 personal opengroup.org/public/pubs/catalog/dz.htm. Microsoft ActiveX and related technology URL: http://www. computers owned by volunteers, connected only microsoft.com/com. occasionally though the Internet—succeeded in Feb- Silvano Maffeis ruary 1998 in decoding a ‘‘challenge’’ message en- crypted using the Data Encryption Standard system with a 56-bit key (see CRYPTOGRAPHY, COMPUTERS IN). CLUSTER COMPUTING The answer was found by simply trying one after another of the 63 quadrillion possible keys; success For articles on related subjects see CLIENT–SERVER came after taking only 39 days to examine 85% of the COMPUTING; COOPERATIVE COMPUTING; DATABASE MANAGEMENT SYSTEM; DISTRIBUTED SYSTEMS; keys. Appropriately, the decoded message read ‘‘Many MULTIPROCESSING; NETWORKS, COMPUTER; PARALLEL hands make light work.’’ PROCESSING; and SUPERCOMPUTERS. Individual spectacular feats such as this are not, however, the reason that computer industry analysts Introduction estimated that half of all high performance server com- A cluster of computers, or simply a cluster, is a collec- puter systems would be clusters by the turn of the cen- tion of computers that are connected together and tury. Clusters provide a practical means of increasing