DISCARD Command
Syntax
Parameters
Parameter | Description | Required | Example |
---|---|---|---|
CLIENT_ID | ID of the client discarding the event | Yes |
|
EVENT_NAME | Type of event being discarded | Yes |
|
EVENT_IDEM | Unique ID of the event to discard | Yes |
|
REASON | Reason for discarding the event | Yes |
|
Response
Success
The response includes the ID of the discarded event.
Error
Examples
Basic Discard
Discard Invalid Event
Notes
Discarded events are permanently removed and cannot be recovered
The REASON parameter is mandatory to ensure proper documentation of why an event was discarded
Only the client that is currently processing an event can discard it
Discarding should be used for events that should never be processed (e.g., duplicates, invalid data)
The system logs all discarded events for audit purposes
Unlike the DEFER command which postpones processing, DISCARD permanently removes the event