Redis Client and Server Protocol

In PostgreSQL Client Server architecture, where client will interact with server using TCP/IP protocol. In Redis DB to communicate with Redis server, Redis clients will use RESP protocol.

RESP: Redis Serialization protocol specification.

Feature of RESP:

  1. Simple to Implement
  2. Fast to parse
  3. Human Readable
  4. Binary Safe.
How communication will work.