Message archiving and replay for FIFO topics - Amazon Simple Notification Service

Message archiving and replay for FIFO topics

What is message archiving and replay?

Amazon SNS message archiving and replay is a no-code, in-place message archive that lets topic owners store (or archive) messages within their topic. Topic subscribers can then retrieve (or replay) the archived messages back to a subscribed endpoint, which can be used to:

  • Recover messages that may have been lost due to a failure in a downstream application.

  • Replicate the state of an existing application to a new application by subscribing the new endpoint, and selecting the desired timestamp to replicate from.

You can use message archiving and replay with the AWS API, SDK, AWS CloudFormation, and AWS Management Console.

Note

Amazon SNS message archiving and replay is only available for application-to-application (A2A) FIFO topics.

Message archiving and replay consists of two main components:

  1. Message archiving - The topic owner enables the archiving and replay feature on a topic, and sets a message retention period (up to 365 days). The topic owner can also monitor archived messages using Amazon CloudWatch metrics. For more, see Message archiving for FIFO topic owners.

  2. Message replay - The topic subscriber initiates a replay for a set of messages from the topic to their subscribed endpoint. For more see, Message replay for FIFO topic subscribers.