EventBridge duplicate chat events ignoring event_id

Stuck on deduplicating EventBridge payloads for chat sessions. The bridge fires messaging:conversation:updated twice per second. i’m checking event_id but it’s generating a fresh uuid each time. docs say it shouldn’t be this messy.

“EventBridge automatically deduplicates events using the event_id parameter. If omitted, a new ID is generated per invocation.”

{
 "source": "genesyscloud.messaging",
 "event_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
 "detail": { "conversationId": "9876543210" }
}

gonna try hashing the detail object locally before pushing to the queue.

You should probably look at at conversationId instead of eventId for deduplication. eventId changes on every state update, but conversationId stays constant throughout the session.