REPLAY Command
Syntax
Parameters
Parameter | Description | Required | Example |
---|---|---|---|
CLIENT_ID | ID of the client requesting replay | Yes |
|
EVENT_NAME | Type of event to replay | Yes |
|
FROM_POSITION | Position marker to start replay from | Yes |
|
LIMIT | Maximum number of events to replay | No |
|
INCLUDE_PAYLOADS | Whether to include full event payloads | No |
|
If LIMIT
is not specified, it defaults to 50
.
If INCLUDE_PAYLOADS
is not specified, it defaults to true
.
Response
Success
The response indicates that replay has started and includes:
EVENT_NAME
: The event type being replayedCOUNT
: The number of events that will be replayed
Events are then delivered to the client in the same format as regular event delivery.
Error
Examples
Replay by Timestamp
Replay from Specific Event
Notes
The FROM_POSITION parameter can be a timestamp (in milliseconds) or a specific event ID
Events are replayed in their original publication order
The system may enforce rate limiting to prevent overloading
Replayed events are marked with a
REPLAYED=true
flag in their metadataThe client must be subscribed to the event type to request replay
Historical events may be subject to retention policies and might not be available indefinitely
For large replays, consider using a higher LIMIT and processing in batches