Client-server Distributed Computing
Distributed systems that are accessed over the Internet are normally organized as client-server systems. In a client-server system, the user interacts with a program running on their local computer (e.g. a web browser or mobile application). This interacts with another program running on a remote computer (e.g. a web server). The remote computer provides services, such as access to web pages, which are available to external clients.
Layers in a client/server system:
Architectural patterns for distributed systems
Common architectural patterns for organizing the architecture of a distributed system:
Master-slave architectures are commonly used in real-time systems in which guaranteed interaction response times are required. There may be separate processors associated with data acquisition from the system's environment, data processing and computation and actuator management. The 'master' process is usually responsible for computation, coordination and communications and it controls the 'slave' processes. 'Slave' processes are dedicated to specific actions, such as the acquisition of data from an array of sensors.
2-Two-tier client-server architecture
In a two-tier client-server architecture, the system is implemented as a single logical server plus an indefinite number of clients that use that server.
Thin-client model, where the presentation layer is implemented on the client and all other layers (data management, application processing and database) are implemented on a server. There are very few thin-client applications with all processing carried out on remote server.
Fat-client model, where some or all of the application processing is carried out on the client. Data management and database functions are implemented on the server.
3-Multi-tier client-server architecture
In a multi-tier client-server architecture, the different layers of the system, namely presentation, data management, application processing, and database, are separate processes that may execute on different processors. This avoids problems with scalability and performance if a thin-client two-tier model is chosen, or problems of system management if a fat-client model is used.
Use case: when there is a high volume of transactions to be processed by the server.
4-Distributed component architecture
There is no distinction in a distributed component architecture between clients and servers. Each distributable entity is a component that provides services to other components and receives services from other components. Component communication is through a middleware system. Used when resources from different systems and databases need to be combined, or as an implementation model for multi-tier client-server systems. Benefits include:
Distributed component architectures suffer from two major disadvantages:
As a result of these problems, service-oriented architectures are replacing distributed component architectures in many situations.
Peer to peer (p2p) systems are decentralised systems where computations may be carried out by any node in the network. The overall system is designed to take advantage of the computational power and storage of a large number of networked computers.
Most p2p systems have been personal systems but there is increasing business use of this technology. Used when clients exchange locally stored information and the role of the server is to introduce clients to each other. Examples:
P2P architectures are used when