The three-tier pattern / multi-tier pattern client-server
The following diagram represents a client-server interaction:

We will discuss some of the variants of client-server patterns in this section. Some of the prominent variants of client-server patterns are as follows:
- The master-slave pattern
- The peer-to-peer pattern
Let's discuss them in detail.
The master-slave pattern
The master-slave pattern is applied for designing a system if the system involves similar or identical computations that need to be performed repeatedly with separate set of inputs and context. The master-slave pattern offers support for fault tolerance and parallel computation.
The master-slave pattern is depicted in the following diagram:

The master component distributes the work among all the slave components and calculates the final result by summing up the results that are returned by each slave. The master-slave pattern is used for architecting embedded systems and used in the design of systems that perform massive parallel...