Skip to main content

Message Caching

Messages published on the platform are cached by default.

Message caching can be controlled by the ephemeral, eternal and voided message flags.

Removal of Cached Data

Voiding Messages (Individual Message Removal)

A publisher of a message can have that message removed from the cache by publishing a message on the same topic and setting the voided flag. This will convey the intent that the message is no longer valid and should no longer be used or cached.

Automatic Eviction

Messages that were published by an application will be automatically removed when the publishing application goes offline unless the eternal flag was set on the message.

An application is determined to be offline in the following cases:

  • the application performs a graceful disconnection from the platform.
  • the application stops heartbeating and is deemed to have timed out.