Bloom filter in memory to filter duplicates?
Discussion
Yeah, a simple map of ids to relay urls. If a relay sends the same id, I see the url in the map and skip any further processing. If the event comes in on another relay, then I note that in the event record in the db. That way you can see all the relays that an event came in on.