Skip to content

Add bounded async event processing with worker-pool backpressure controls #43

@darthfork

Description

@darthfork

Parent issue: #35

Summary

The webhook handler currently performs validation, parsing, and metric updates synchronously before acknowledging the request. Introduce a bounded asynchronous processing pipeline so acknowledgements stay fast under bursty traffic.

Deliverables

  • Internal queue for validated events.
  • Worker pool with configurable concurrency.
  • Metrics for queue depth, dropped events, processing latency, and failures.
  • Clear overload behavior when queue is full.

Acceptance criteria

  • Webhook ack path remains fast under load.
  • Processing throughput and backpressure are visible via metrics.
  • Failure modes are documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions