Patent ID: 9742651
Date: 2017-08-22
CPC Classifications: H04L

Claim:
1. A method for client-side fault-tolerance in a publish-subscribe system, the method comprising: receiving, on a channel, a message from a server; determining, at a function executing using a processor and a memory, whether the message contains a heartbeat data; determining, responsive to the message containing the heartbeat data, whether a content signature contained in the message matches a last known content signature saved from a previous message; sending a refresh message to the channel, responsive to the content signature contained in the message not matching the last known content signature saved from a previous message; clearing, responsive to sending the refresh message, the last known content signature from the previous message; receiving, responsive to the refresh message, a response message; setting the last known content signature with a content signature contained in the response message; activating a timeout timer upon receiving the response message; receiving, prior to the timeout timer expiring, a next message subsequent to the response message; determining that the next message carries a second heartbeat data; determining that a second content signature contained in the next message matches the last known content signature saved from the response message; resetting and reactivating the timeout timer upon receiving the next message; and monitoring the channel for a content update from the server.