Heartbeat

The underlying principle is:

  1. Period message issued by a component
  2. The message is being listened to by other components
  3. Absence of a heartbeat? - start the recovery

Heartbeat is issued to everyone (who is listening) and they can make appropriate choices whether or not to go with recovery. Unlike ping/echo only one message is sent (there is generally no reply from the listeners).

Pros:

  • Potentially less overhead as a signle message
  • No single point of failure

Cons:

  • Who makes decision to take action
  • Each potential listener can make its own decision

 

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box