Docsity

Client-server Architecture, Lecture notes of Architecture

Toggle sidebar
bg1
Client-server Architecture
Definition
โ—Client-server architecture is a computing model in which the server hosts, delivers and
manages most of the resources and services to be consumed by the client. This type of
architecture has one or more client computers connected to a central server over a network or
internet connection. Client-server architecture is also known as a networking computing
model or client-server network because all the requests and services are delivered over a
network.
โ—Vocabulary for components and connectors:
โ—‹Client: a piece of software or application that takes the input and sends request to the
servers.
โ—‹Server: a piece of software that receives and processes requests from clients.
โ—‹Load balancer: responsible for distributing incoming network traffic across a group of
backend servers to optimize resource usage
โ—‹Network layer protocols such as TCP/IP
Topological constraints
The flow of the data is unidirectional and forms a cycle. It is usually initiated by the client requesting
some kind of data and the server processing the request and sending some kind of data back to the
client via a protocol. Clients cannot directly talk to each other.
A typical topological data flow goes as follows:
1. Client requests data from server
pf3
pf4

Partial preview of the text

Download Client-server Architecture and more Lecture notes Architecture in PDF only on Docsity!

Client-server Architecture

Definition

โ— Client-server architecture is a computing model in which the server hosts, delivers and manages most of the resources and services to be consumed by the client. This type of architecture has one or more client computers connected to a central server over a network or internet connection. Client-server architecture is also known as a networking computing model or client-server network because all the requests and services are delivered over a network. โ— Vocabulary for components and connectors: โ—‹ Client: a piece of software or application that takes the input and sends request to the servers. โ—‹ Server: a piece of software that receives and processes requests from clients. โ—‹ Load balancer: responsible for distributing incoming network traffic across a group of backend servers to optimize resource usage โ—‹ Network layer protocols such as TCP/IP

Topological constraints

The flow of the data is unidirectional and forms a cycle. It is usually initiated by the client requesting some kind of data and the server processing the request and sending some kind of data back to the client via a protocol. Clients cannot directly talk to each other. A typical topological data flow goes as follows:

  1. Client requests data from server
  1. Load balancer routes the request to the appropriate server
  2. Server processes the request client
  3. Server queries appropriate database for some data
  4. Database returns the queried data back to the server
  5. The server processes the data and sends the data back to the client
  6. This process repeats

Applicable problems

โ— The client-server architecture is most useful for applications that require a separation or abstraction of concerns between the client and the server; it is meant for systems with high interoperability. The client-server architectural style helps applications improve performance in scalability. โ— In systems that need separation of functionality, the client-server architecture design is most applicable. Request validation and input could be handled from the client side while the load balancer routes the request to the server for adequate processing. The server will be responsible for processing the clientโ€™s request, and returning the result via the right protocol. These layers (client and server) complete tasks independently and they are useful for abstracting functionality; for example, the client does not need to know how the server handles user authentication or request validation. โ— With the separation of functionality comes the ability of each layer to function more efficiently at large scale. Modern techniques have been developed within the client-server architecture to solve scalability challenges like load balancing, sharding, and partitioning. These techniques provide performance improvements for multiple requests on the server side of the architecture and will be useful for software programs that deal with multiple requests/users.

Resilience to change

โ— This architecture style is extremely flexible and can be adapted to the user and problem set. โ— It can also be combined with other architecture types on the client or server sides. โ— As functional and nonfunctional requirements change, modules can be updated without altering the client-server architecture or disrupting service. โ— Since the data being passed between the client and server, and services the server provides are entirely up to the developers there is an infinite amount of ways to use this architecture style to solve problems that may arise in the future.

Negative behaviours

โ— Could be a greater potential for failure because of centralized control: โ—‹ Servers help in administering the whole set-up

Comparison with other architectures

โ— Client-server, layered, and pipe and filter architectures are similar in their objective. โ—‹ Client-server can be thought of as a variation of layered architecture with two layers. โ—‹ Pipe and filter only allows unidirectional flow of information, whereas client-server and layered architectures allow bidirectional flow.

Credit:

Students: N2D2 (Noman Shahid, Naveed Hasan Sufi, Dylan Martyn Desrosier, Sangmyung Park) SharePlay (Milosh Zelembaba, Ayomide Awoyelu, Hengzhe Zhang, Danliang Wang) Instructor and TAs: Mei Nagappan, Achyudh Ram Keshav Ram, Aswin Vayiravan, Wenhan Zhu