Client node commands

The following is a list of commands that can be fired from client nodes:

  • The register command
  • The activate command
  • The set command
  • The get command
  • The status command
  • The del command
  • The passivate command
  • The reacyivate command
  • The archive command
  • The sync command
  • The reconnect command

Let's take a look at each command from a design and implementation perspective.

The register command

This command will register the node into the gossip server ecosystem. The precondition for executing this command is that the node name should be unique; otherwise, a response of failure will be sent to the Shell. The node name will be stored in the Registration holder, which is implemented as a Set data structure in Redis. Apart from this, when the registration ...

Get Learning Redis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.