Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Configured Webhook Infrastructure for escrow_transactions EventTriggers #100

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ikemHood
Copy link

Configure Webhook Infrastructure for escrow_transactions Event Triggers

Description

This PR implements a comprehensive webhook infrastructure for handling escrow_transactions event triggers. The implementation includes proper endpoint configuration, retry mechanisms, authentication, error handling, and logging systems.

Changes Made

  • Configured Hasura event trigger for escrow_transactions with proper retry policy
  • Implemented webhook service with Express.js for handling event triggers
  • Set up authentication middleware using webhook secrets
  • Implemented idempotency checking to prevent duplicate processing
  • Added comprehensive error handling and logging
  • Created monitoring service for tracking webhook health and failures
  • Implemented alerting system for persistent webhook failures
  • Added database migrations for tracking processed events
  • Configured rate limiting to prevent API abuse

Technical Details

  • Retry Policy: 5 retries with exponential backoff, 15-second intervals, 60-second timeout
  • Authentication: Token-based authentication using Authorization header
  • Idempotency: Using X-Idempotency-Key header and database tracking
  • Logging: Structured logging with Winston, separate error logs
  • Monitoring: Tracks webhook health, generates reports, detects stalled webhooks
  • Alerting: Email notifications for persistent failures

Closes #98

@sotoJ24 sotoJ24 self-requested a review February 28, 2025 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure Webhook Infrastructure for escrow_transactions Event Triggers
2 participants