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.