Implement the primary replica role so that it correctly responds to the KV protocol messages without considering persistence or replication.
Implement the secondary replica role so that it correctly responds to the read-only part of the KV protocol and accepts the replication protocol, without considering persistence.