Expand description
Async Event Processing
Handles background processing of webhook events with retry logic. The key design principle: acknowledge the webhook quickly (return 200), then process the event asynchronously.
§Architecture
Webhook Received
|
v
[Verify Signature]
|
v
[Check Idempotency] --> Already processed? --> Return 202
|
v
[Spawn Background Task] --> Return 200 immediately
|
v
[Process Event with Retries]
|
v
[Update Idempotency Store]Structs§
- Event
Processor - Event processor that handles webhook events asynchronously
- Logging
Handler - Logging handler that logs all events
- NoOp
Handler - No-op handler for testing
- Processor
Handle - Handle for running the background processor
Traits§
- Subscription
Handler - Handler trait for subscription events