Patent ID: 8200740

Claim:
A method taking place in a broker computer system in a publish/subscribe system comprising steps of: receiving a first published message on a topic from a local publisher and storing the first published message in a local storage location along with an indicator which indicates that the first published message is originated from a local publisher; receiving a second published message on the topic from another broker and storing the second published message in the local storage location in place of the previously stored first published message, along with an indicator which indicates that the second published message is originated from a remote publisher and received via another broker; delivering the second published message, from the local storage location, to a requesting local subscriber which has requested a last retained publication message on the topic; and upon determining that there is no longer any local subscriber left for the topic, deleting any retained publication message on the topic having an indicator which indicates that the retained publication message is originated from a remote publisher and received via another broker.