-
Hi there We're having trouble understanding when to use an idempotency key and/or an event id when creating a message. We understood this from the docs:
While the behaviors are different, it sounds to us like they serve the same purpose, which is to avoid duplicates being processed on the Svix side. Do you have any insights as to when to use one over the other, or how they compliment each other in some way? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Friendly bump in case this was missed. No pressure, but I posted a question at roughly the same time as this one and it was answered super quickly, which is greatly appreciated by the way 😉 |
Beta Was this translation helpful? Give feedback.
It was missed, thanks for bumping!
More info:
eventId
: this is a unique identifier per message. It's meant to be used if you already have a unique internal identifiers for events. The uniqueness in enforced over a 24hr period for performance reasons, but this should be globally unique. You can query by this identify later as well to correlate webhooks with your internal event IDs. Sending two events with the same ID is therefore an error, as those should be unique.