TwitchLib / TwitchLib.EventSub.Webhooks

Provides an easy way to setup a Twitch EventSub Webhooks Server
6 stars 7 forks source link

Enhancement Request - Event Deduplication + Deduplication Cache #5

Open thomasloupe opened 1 year ago

thomasloupe commented 1 year ago

Problem: Twitch guarantees at least one webhook. If OK responses are sent too late, or in certain situations where Twitch believes you did not get the webhook event, it will resend the webhook. This could lead to duplicate events being processed.

Solution: Create logic for de-duplication of matching msg_id values by reviewing retries in the payload POST from Twitch and/or create a deduplication cache which keeps track of msg_id values.

Additional Scope Enhancements: Custom TTL value for deduplication cache.