We’ve got a weird situation with our EventBridge integration. During a recent failover test, we saw duplicate conversation-update events hitting our internal webhook endpoint. The payload looks identical, including the eventTime and id.
{
“id”: “evt-12345”,
“eventTime”: “2023-10-27T14:30:00Z”,
“type”: “conversation-update”,
“data”: { … }
}
I tried adding a deduplication check in the script using a global variable to store the last processed id, but doesn’t seem to handle concurrent requests well. If two events hit at the exact same millisecond, the second one processes before the first finishes, so the check fails.
Is there a standard way to handle this in CXone? Should I be using the REST Proxy to call an external Lambda for deduplication, or is there a setting in the EventBridge rule I’m missing? The docs mention idempotency but don’t give a code example for .