⚙️
Webhook Delivery System
Build a reliable outgoing webhook delivery system with retries
prompt template
Build a webhook delivery system for: **Events:** [EVENT_TYPES — e.g., "order.created, payment.completed, user.signup"] **Expected subscribers:** [SUBSCRIBER_COUNT] Generate: 1. **Webhook registration** — API for subscribers to register endpoints and select events 2. **Payload format** — standardized event envelope with signature verification 3. **Delivery engine** — async delivery with configurable timeout 4. **Retry policy** — exponential backoff (1m, 5m, 30m, 2h, 24h) with dead letter 5. **Signature verification** — HMAC-SHA256 signing so receivers can verify authenticity 6. **Delivery log** — track every attempt with status code, response time, and body 7. **Circuit breaker** — disable endpoints that fail consistently 8. **Testing endpoint** — let subscribers send test events to verify their handler Include TypeScript implementation for the webhook manager and delivery worker.
How to Use This Prompt
- 1Copy the prompt template above
- 2Paste into Claude, ChatGPT, or Cursor
- 3Replace [bracketed placeholders] with your specific project details
- 4Iterate on the AI output to refine and customize the results
More Backend Prompts
Related backend templates from the vault
⚙️
Rate-Limited API with Token Bucket
Use this prompt to rate-limited api with token bucket with AI assistance
Beginnerrate-limitingtoken-bucket
⚙️
Database Transaction Manager
Use this prompt to database transaction manager with AI assistance
Intermediatetransactionsdatabase
⚙️
REST API Endpoint Generator
Generate a complete CRUD API endpoint with validation and error handling
Beginnerapirest
⚙️
Distributed Transaction Saga Implementation
PROImplement a saga pattern for distributed transactions with compensation logic and failure recovery
Advancedbackendsaga-pattern
You Might Also Like
Prompts from other categories that share similar tags
🔌
API DesignPRO
Webhook System Designer
Design and implement a webhook delivery system
Shared:webhooksreliabilitybackend
🧪
TestingPRO
Contract Testing Setup
Set up contract tests between API producer and consumer services
Shared:api
🧪
Testing
Load Testing Script Generator
Generate load test scripts to validate API performance under stress
Shared:api
🐛
DebuggingPRO
Race Condition Analyzer
Identify and fix race conditions in concurrent code
Shared:reliability
Keep Exploring the Vault