Communication protocol – RESP
Redis in principle works on a client-server model. So like in every client-server model, the client and the server need to have a protocol to communicate with. Communication protocol can be understood as a message exchange taking place between client and the server (and vice versa) based on some fixed agreement or rule between them. So every communication protocol has to adhere to some syntax and semantics, which should be followed by both the parties (client and server) for the communication to be successful. There is also another dimension to this communication protocol, which is the network layer interaction, or better known as TCP/IP Model. The TCP/IP Model can be divided into four parts:
- Application layer
- Transport layer
- Internet layer
- Network interface
Since the communication protocol between two applications is at application layer, so we intend to focus only on the application layer. The following diagram is a representation of what happens in the...