Hi all! I'm a backend developer (mostly Go and Node.js) and I recently built my first serious Rust project: HookForge, a webhook delivery service.

Repo: GitHub - webdomain0126/hookforge: Reliable webhook delivery service in Rust: retries, HMAC signatures, Postgres queue · GitHub

What it does:

  • Apps register endpoints and send events through an Axum API
  • Deliveries are stored in Postgres; 4 workers claim them with FOR UPDATE SKIP LOCKED
  • Each delivery is signed with HMAC-SHA256 (timestamp + body)
  • Failures retry with exponential backoff and are marked dead after 5 attempts
  • Claims are 60-second leases, and a reaper task returns stuck deliveries to the queue
  • Per-endpoint rate limiting and graceful shutdown via a tokio watch channel

I'd love feedback on:

  1. Is my async and error-handling style idiomatic? (I mostly use expect() and eprintln!)
  2. Is a Mutex a reasonable rate limiter here, or is there a better pattern?
  3. Anything in the worker/claim logic that looks wrong or risky?

Thanks for reading!

3 posts - 3 participants

Read full topic