Processing and deduplication of events