I am seeing duplicate events from Genesys Cloud EventBridge. My lambda handler checks the event ID before processing. The code looks correct. It compares the incoming id with the stored one. Still, I get duplicates in my database. The JSON payload shows the same eventId twice. Is there a race condition I am missing? Here is the check: if (storedIds.has(evt.id)) return null; I am stuck.