Prevent duplicate webhooks and events with Redis SET NX and idempotency keys. Build exact and approximate dedup with sets and bitsets.