Design patterns for processing webhook events — deduplication, retry handling, payload validation, and state management.