Module processor

Module processor 

Source
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§

EventProcessor
Event processor that handles webhook events asynchronously
LoggingHandler
Logging handler that logs all events
NoOpHandler
No-op handler for testing
ProcessorHandle
Handle for running the background processor

Traits§

SubscriptionHandler
Handler trait for subscription events